Don't try the callback if there isn't one
authorRichard Fairhurst <richard@systemeD.net>
Sun, 25 Mar 2012 15:30:00 +0000 (16:30 +0100)
committerRichard Fairhurst <richard@systemeD.net>
Sun, 25 Mar 2012 15:30:00 +0000 (16:30 +0100)
net/systemeD/halcyon/styleparser/RuleSet.as

index cbe58be..be59b8d 100644 (file)
@@ -303,7 +303,7 @@ package net.systemeD.halcyon.styleparser {
                                                FileBank.getInstance().addFromFile(filename);
                                }
                        }
-            FileBank.getInstance().onFilesLoaded(iconCallback);
+            if (iconCallback!=null) { FileBank.getInstance().onFilesLoaded(iconCallback); }
                }
                
                // ------------------------------------------------------------------------------------------------