diff --git a/plugins/htmltools/src/com/intellij/html/preview/ImageOrColorPreviewManager.java b/plugins/htmltools/src/com/intellij/html/preview/ImageOrColorPreviewManager.java
index eb24aa1cdbc6..30ac7cda132d 100644
--- a/plugins/htmltools/src/com/intellij/html/preview/ImageOrColorPreviewManager.java
+++ b/plugins/htmltools/src/com/intellij/html/preview/ImageOrColorPreviewManager.java
@@ -2,6 +2,7 @@ package com.intellij.html.preview;
import com.intellij.codeInsight.hint.HintManagerImpl;
import com.intellij.openapi.Disposable;
+import com.intellij.openapi.project.DumbService;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.editor.Editor;
@@ -195,6 +196,10 @@ public class ImageOrColorPreviewManager implements Disposable, EditorMouseMotion
return;
}
+ if (DumbService.getInstance(element.getProject()).isDumb()) {
+ return;
+ }
+
final LightweightHint hint = ImageOrColorPreviewManager.getHint(element);
if (hint != null) {
final Editor editor = myManager.getEditor();