xcosPalGenerateAllIcons() threw a java null pointer exception 36/11136/2
Alexandre HERISSE [Thu, 28 Mar 2013 12:57:25 +0000 (13:57 +0100)]
Change-Id: If52f4361b1da1381758796b43d00ac6a009710bf

scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/scicos/ScilabDirectHandler.java

index 8887d73..aac2f62 100644 (file)
@@ -138,6 +138,9 @@ public class ScilabDirectHandler implements Handler {
         }
 
         // fail safely
+        if (data == null) {
+            return null;
+        }
         if (data.isEmpty()) {
             LOG.finer("data not available");
             return null;