Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327041 - NPE in JsValidator#performValidation
Summary: NPE in JsValidator#performValidation
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: Web (show other bugs)
Version: 3.0.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.5 P   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard: WI59376
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-05 16:14 EDT by Ian Tewksbury CLA
Modified: 2010-11-11 14:58 EST (History)
2 users (show)

See Also:
cmjaun: review+


Attachments
proposed patch (1.23 KB, patch)
2010-10-11 08:42 EDT, Nitin Dahyabhai CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Tewksbury CLA 2010-10-05 16:14:59 EDT
Unfortunately I don't have great steps to give.  The best I have is that I am in an adopter product and open a CSS file through a link and saw this in the log.  Hopefully with line numbers its enough to figure out the cause of the NPE.

java.lang.NullPointerException
at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:180)
at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:337)
at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:246)
at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:292)
at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:258)
at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:96)
at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:238)
at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:191)
at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:252)
at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor.run(DirtyRegionProcessor.java:657)
Comment 1 Nitin Dahyabhai CLA 2010-10-11 08:42:43 EDT
Created attachment 180596 [details]
proposed patch
Comment 2 Carl Anderson CLA 2010-11-11 14:58:49 EST
Committed to R3_0_5_patches