Palete/Gir.vala
authorAlan Knowles <alan@akbkhome.com>
Thu, 11 Sep 2014 15:55:58 +0000 (23:55 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 11 Sep 2014 15:55:58 +0000 (23:55 +0800)
Palete/Gir.vala

index 35ffd27..a4747cc 100644 (file)
@@ -495,7 +495,7 @@ namespace Palete {
 
                public static string guessDefaultValueForType(string type) {
                        //print("guessDefaultValueForType: %s\n", type);
-                       if (type.contains(".")) {
+                       if (type.length < 1 || type.contains(".")) {
                                return "null";
                        }
                        switch(type) {