From 9a137ad9ef8f90a4c775c7a2d1b9e5b41602e6da Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 17 Nov 2009 23:32:09 +0000 Subject: [PATCH] slightly improved the robusness of the valuestringlist function in collada parsing --- wrap/dae/util_dae.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wrap/dae/util_dae.h b/wrap/dae/util_dae.h index 7e454c8c..5b2e5fb6 100644 --- a/wrap/dae/util_dae.h +++ b/wrap/dae/util_dae.h @@ -309,6 +309,11 @@ namespace io { assert(list.size() == 1); QString nd = list.at(0).firstChild().nodeValue(); res = nd.simplified().split(" ",QString::SkipEmptyParts); + if(res.empty()) + { + qDebug("Warning valueStringList returned and emtpy list. nothing inside element with tag '%s'", qPrintable(tag)); + return; + } if (res.last() == "") res.removeLast();