Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Mueller2018-02-23 02:13:04 -0500
committerMarvin Mueller2018-02-23 02:13:04 -0500
commit77eff29fab0e3d97cc42dfaa65791d75e417a37a (patch)
tree485a039b804af9a52100ecf18b2e3f0d68a21ad4
parent677fe5af9f51cc935d2316c8e0923741a630ffb7 (diff)
downloadorg.eclipse.jubula.core-photon.tar.gz
org.eclipse.jubula.core-photon.tar.xz
org.eclipse.jubula.core-photon.zip
Fix a nullpointer which might occur after switchting projectsv8.6.0.262photon
-rw-r--r--org.eclipse.jubula.client.teststyle/src/org/eclipse/jubula/client/teststyle/gui/MarkerHandler.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.jubula.client.teststyle/src/org/eclipse/jubula/client/teststyle/gui/MarkerHandler.java b/org.eclipse.jubula.client.teststyle/src/org/eclipse/jubula/client/teststyle/gui/MarkerHandler.java
index 6289c7faf..bb6527b41 100644
--- a/org.eclipse.jubula.client.teststyle/src/org/eclipse/jubula/client/teststyle/gui/MarkerHandler.java
+++ b/org.eclipse.jubula.client.teststyle/src/org/eclipse/jubula/client/teststyle/gui/MarkerHandler.java
@@ -104,8 +104,10 @@ public class MarkerHandler {
IMarker problemMarker = m_problems.get(problem);
if (problemMarker != null) {
IMarker marker = m_res.findMarker(problemMarker.getId());
- marker.delete();
- m_markers.remove(marker);
+ if (marker != null) {
+ marker.delete();
+ m_markers.remove(marker);
+ }
}
m_problems.remove(problem);
} catch (CoreException e) {

Back to the top