Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornsandonato2010-04-12 21:07:57 +0000
committernsandonato2010-04-12 21:07:57 +0000
commit2c77dfc8da63a891fbe32fc5bffc898174abe4bc (patch)
tree6627b637c831f7e94aed7680d6208ea857ac227d /bundles/org.eclipse.wst.html.core/src
parentd592663510e36fee0a49f9009bdb0f6ff1af2a22 (diff)
downloadwebtools.sourceediting-2c77dfc8da63a891fbe32fc5bffc898174abe4bc.tar.gz
webtools.sourceediting-2c77dfc8da63a891fbe32fc5bffc898174abe4bc.tar.xz
webtools.sourceediting-2c77dfc8da63a891fbe32fc5bffc898174abe4bc.zip
[170080] [content assist] null pointer exception in StyleElementAdapter
Diffstat (limited to 'bundles/org.eclipse.wst.html.core/src')
-rw-r--r--bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/htmlcss/StyleElementAdapter.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/htmlcss/StyleElementAdapter.java b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/htmlcss/StyleElementAdapter.java
index 94beee70d8..f26c90425c 100644
--- a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/htmlcss/StyleElementAdapter.java
+++ b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/htmlcss/StyleElementAdapter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2009 IBM Corporation and others.
+ * Copyright (c) 2004, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -166,7 +166,9 @@ public class StyleElementAdapter extends AbstractStyleSheetAdapter implements IS
modelProvideAdapter.modelProvided(model);
// from createModel()
- IStructuredDocument structuredDocument = model.getStructuredDocument();
+ IStructuredDocument structuredDocument = null;
+ if (model != null)
+ structuredDocument = model.getStructuredDocument();
if (structuredDocument == null)
return null;
structuredDocument.addDocumentChangedListener(this);

Back to the top