commit | 1c91a064f6ec2728eaee675529322269c149a269 | [log] [tgz] |
---|---|---|
author | nsandonato <nsandonato> | Mon Apr 13 19:04:21 2009 +0000 |
committer | nsandonato <nsandonato> | Mon Apr 13 19:04:21 2009 +0000 |
tree | dedddca7ed521489a15f4aacf0e076dc222b7671 | |
parent | 35e6c310d13484ddb645f7e4921d8b2d6c6cb44a [diff] |
[244515] NullPointerException in LineStyleProviderForEmbeddedCSS
diff --git a/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/style/LineStyleProviderForEmbeddedCSS.java b/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/style/LineStyleProviderForEmbeddedCSS.java index d628dd4..49272c6 100644 --- a/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/style/LineStyleProviderForEmbeddedCSS.java +++ b/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/style/LineStyleProviderForEmbeddedCSS.java
@@ -29,6 +29,9 @@ int regionEnd = regionStart + typedRegion.getLength(); IStructuredDocumentRegion wholeRegion = getDocument().getRegionAtCharacterOffset(regionStart); + if (wholeRegion == null) + return false; + List tokens; // [264597] - Using a cached offset caused shifted highlighting in <style> elements. int offset = wholeRegion.getStartOffset();