disable PMD/codacy warning about catching NPE

This commit is contained in:
millmanorama 2018-04-30 15:07:24 +02:00
parent e134108767
commit b6f33bf798

View File

@ -171,7 +171,7 @@ final public class VisualizationPanel extends JPanel implements Lookup.Provider
public void paint(Graphics graphics) { public void paint(Graphics graphics) {
try { try {
super.paint(graphics); super.paint(graphics);
} catch (NullPointerException ex) { } catch (NullPointerException ex) { //NOPMD We can't find the underlying cause in jgraphx
logger.log(Level.WARNING, "There was a NPE while painging the VisualizaitonPanel.", ex); logger.log(Level.WARNING, "There was a NPE while painging the VisualizaitonPanel.", ex);
} }
} }