Tolerate an empty android-extra-libs value
authorAleix Pol <aleixpol@kde.org>
Mon, 10 Nov 2014 02:26:45 +0000 (03:26 +0100)
committerAleix Pol Gonzalez <aleixpol@kde.org>
Mon, 10 Nov 2014 16:35:31 +0000 (17:35 +0100)
Skip the empty fields in the split. It's obvious that "" means nothing,
there's no other way to read the value.
It especially helps with machine-generated versions of the json files.

Change-Id: Idb957d4fa3076e908e5f437807b171f6ec56863c
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
src/androiddeployqt/main.cpp

index 3979b8f..41acfd7 100644 (file)
@@ -824,7 +824,7 @@ bool readInputFile(Options *options)
     {
         QJsonValue extraLibs = jsonObject.value("android-extra-libs");
         if (!extraLibs.isUndefined())
-            options->extraLibs = extraLibs.toString().split(QLatin1Char(','));
+            options->extraLibs = extraLibs.toString().split(QLatin1Char(','), QString::SkipEmptyParts);
     }
 
     {