[264953] [Semantic Highlighting] NPE in installSemanticHighlighting()
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java
index f72ec57..eb66405 100644
--- a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java
+++ b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java
@@ -3279,9 +3279,10 @@
 	 * Installs semantic highlighting on the editor
 	 */
 	private void installSemanticHighlighting() {
-		if (fSemanticManager == null) {
+		IStructuredModel model = getInternalModel();
+		if (fSemanticManager == null && model != null) {
 			fSemanticManager = new SemanticHighlightingManager();
-			fSemanticManager.install(this, (StructuredTextViewer) getSourceViewer(), getPreferenceStore(), getSourceViewerConfiguration(), getInternalModel().getContentTypeIdentifier());
+			fSemanticManager.install(this, (StructuredTextViewer) getSourceViewer(), getPreferenceStore(), getSourceViewerConfiguration(), model.getContentTypeIdentifier());
 		}
 	}