Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M Finkbeiner2012-08-20 21:08:07 +0000
committerAndrew M Finkbeiner2012-08-20 21:08:07 +0000
commitf2a2bbfea420873ca2d800835c217c3905acc941 (patch)
treed3b134af06e5f337e665f907b93e8cc1b553764f
parenta9a3244811a9fa4b1ededeaa77fa2406af19dc79 (diff)
downloadorg.eclipse.osee-f2a2bbfea420873ca2d800835c217c3905acc941.tar.gz
org.eclipse.osee-f2a2bbfea420873ca2d800835c217c3905acc941.tar.xz
org.eclipse.osee-f2a2bbfea420873ca2d800835c217c3905acc941.zip
bug: Add null check for marker removal0.10.1.v201208202314_RC
-rw-r--r--plugins/org.eclipse.osee.ote.ui.markers/src/org/eclipse/osee/ote/ui/markers/MarkerPlugin.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ote.ui.markers/src/org/eclipse/osee/ote/ui/markers/MarkerPlugin.java b/plugins/org.eclipse.osee.ote.ui.markers/src/org/eclipse/osee/ote/ui/markers/MarkerPlugin.java
index 959dff4e69..6dd764412f 100644
--- a/plugins/org.eclipse.osee.ote.ui.markers/src/org/eclipse/osee/ote/ui/markers/MarkerPlugin.java
+++ b/plugins/org.eclipse.osee.ote.ui.markers/src/org/eclipse/osee/ote/ui/markers/MarkerPlugin.java
@@ -118,6 +118,9 @@ public class MarkerPlugin implements BundleActivator {
public static void findAndRemoveOteMarkers(IResource resource){
try {
+ if(resource == null){
+ return;
+ }
IMarker[] markersToRemove = resource.findMarkers("org.eclipse.osee.ote.ui.output.errorMarker", false, IResource.DEPTH_INFINITE);
for(IMarker localMarker:markersToRemove){
localMarker.delete();

Back to the top