Skip to content

Commit

Permalink
Added null check for save
Browse files Browse the repository at this point in the history
  • Loading branch information
stampy88 committed Feb 13, 2012
1 parent 0e0a76b commit e7ca8dd
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -447,9 +447,11 @@ private SaveAction(String text, ImageIcon icon, String description, int mnemonic

@Override
public void actionPerformed(ActionEvent e) {
SaveModelDialog.saveProcessingModel(DesignerFrame.this, currentProcessingModel, repository);
if (currentProcessingModel != null) {
SaveModelDialog.saveProcessingModel(DesignerFrame.this, currentProcessingModel, repository);

modelNameStatusItem.setText(currentProcessingModel.getModelName());
modelNameStatusItem.setText(currentProcessingModel.getModelName());
}
}
}

Expand Down

0 comments on commit e7ca8dd

Please sign in to comment.