CoverityFix-CID:1350525 Dereference null return value 14/20114/3
Nimish Kapoor [Wed, 6 Jun 2018 06:53:49 +0000 (11:53 +0530)]
Change-Id: Ia9330a817bc3c16056394df144719c6237ca5339

scilab/modules/graph/src/java/org/scilab/modules/graph/utils/ScilabGraphUtils.java

index bbd42ce..86de0cc 100644 (file)
@@ -109,7 +109,7 @@ public final class ScilabGraphUtils extends mxUtils {
 
                 generatedSVGComponents.put(filename, node.getWeakReference());
                 generatedSVGSizes.put(filename, ctx.getDocumentSize());
-            } catch (IOException e) {
+            } catch (IOException | NullPointerException e) {
                 Logger.getLogger(ScilabGraphUtils.class.getName()).severe(e.toString());
             }
         }