[nobug] styling not working in compare view due to null annotation model
diff --git a/bundles/org.eclipse.orion.client.editor/web/orion/editor/textStyler.js b/bundles/org.eclipse.orion.client.editor/web/orion/editor/textStyler.js
index 4f1e2e7..1f8a433 100644
--- a/bundles/org.eclipse.orion.client.editor/web/orion/editor/textStyler.js
+++ b/bundles/org.eclipse.orion.client.editor/web/orion/editor/textStyler.js
@@ -692,7 +692,7 @@
 		var rootBounds = {start: 0, contentStart: 0, end: charCount, contentEnd: charCount};
 		this._rootBlock = new Block(rootBounds, null, this, model);
 		this._computeFolding(this._rootBlock.getBlocks());
-		if (this.detectTasks) {
+		if (annotationModel && this.detectTasks) {
 			var add = [];
 			computeTasks(this._rootBlock, model, add);
 			annotationModel.replaceAnnotations([], add);