Github user andrea-patricelli commented on a diff in the pull request:
https://github.com/apache/syncope/pull/81#discussion_r209894309
--- Diff:
ide/netbeans/src/main/java/org/apache/syncope/ide/netbeans/view/ResourceExplorerTopComponent.java
---
@@ -410,7 +500,14 @@ public void actionPerformed(final ActionEvent e) {
null, "Error while creating new element",
"Error", JOptionPane.ERROR_MESSAGE);
}
}
+ } catch (SyncopeClientException excp) {
+ JOptionPane.showMessageDialog(null, excp.getMessage(),
"Syncope Error", JOptionPane.ERROR_MESSAGE);
+ } catch (IOException | NullPointerException ex) {
--- End diff --
Do not catch NullPointerException, avoid it in the code.
---