Commit 73d63e51 authored by LotfiMed's avatar LotfiMed
Browse files

fixing nullPointerException in save function - PanelRareEvent

parent 076156ff
......@@ -315,11 +315,10 @@ public class PanelRareEvent extends JPanel {
String parentPath = "./Workspace/"+tabbedpane.getSelectedProject()+"/Properties/";
String s = sf.save(parentPath);
tabbedpane.insertNodeInTree(s);
// String s = sf.save("./Properties/");
if(s!= null) {
// tabbedpane.insertNodeInTree(s);
tabbedpane.insertNodeInTree(s);
JOptionPane.showMessageDialog(null, "Score function has been successfully saved!", " Saving operation", JOptionPane.PLAIN_MESSAGE);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment