Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-09-01 16:57:41 -0400
committerDonald Dunne2016-09-07 16:56:49 -0400
commit3a0b3cc561c3b713a0007e6c76bfe9309b0b7be7 (patch)
tree5b999cbb89b2b98a668446022e3638b253336c13
parent73c6407d8b51780e581b90aa9b5865307d8a8e1d (diff)
downloadorg.eclipse.osee-3a0b3cc561c3b713a0007e6c76bfe9309b0b7be7.tar.gz
org.eclipse.osee-3a0b3cc561c3b713a0007e6c76bfe9309b0b7be7.tar.xz
org.eclipse.osee-3a0b3cc561c3b713a0007e6c76bfe9309b0b7be7.zip
bug: Handle ArtifactEditor.dispose for unloaded editors
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditor.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditor.java
index 0c1ba15655..acf2488b7e 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditor.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditor.java
@@ -112,7 +112,7 @@ public class ArtifactEditor extends AbstractEventArtifactEditor {
try {
// If the artifact is dirty when the editor gets disposed, then it needs to be reverted
Artifact artifact = getEditorInput().getArtifact();
- if (!artifact.isDeleted() && artifact.isDirty()) {
+ if (artifact != null && !artifact.isDeleted() && artifact.isDirty()) {
try {
artifact.reloadAttributesAndRelations();
} catch (OseeCoreException ex) {

Back to the top