Community
Participate
Working Groups
BUILD: I-3.2.0-20100401055753 STEPS: 1. Create a static web project 2. create an XML file 3. do a file->save as on the XML file saving it as a different file RESULTS: 1. and error dialog appears saying: "'Processing Dirty Regions' has encountered a problem. An internal error occurred during: "Processing Dirty Regions"" 2. A message is logged: An internal error occurred during: "Processing Dirty Regions". java.lang.NullPointerException at java.util.Arrays$ArrayList.<init>(Unknown Source) at java.util.Arrays.asList(Unknown Source) at org.eclipse.wst.xsl.ui.internal.style.XSLTagDelimsSemanticHighlighting.consumes(XSLTagDelimsSemanticHighlighting.java:47) at org.eclipse.wst.sse.ui.internal.style.SemanticHighlightingReconciler.reconcile(SemanticHighlightingReconciler.java:125) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.endProcessing(DocumentRegionProcessor.java:119) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor.run(DirtyRegionProcessor.java:682) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 3. This is reproducible 100% of the time
Created attachment 163679 [details] Fix for NPE in Semantic Highlighting This fixes the NPE error, and also simplifies the code a bit. Added a Unit Test to make sure we are getting the expected value when a region is Null.
This has been fixed.