[109054] ArithmeticException when set indent using spaces preference set to 0
diff --git a/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/autoedit/AutoEditStrategyForTabs.java b/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/autoedit/AutoEditStrategyForTabs.java
index 1e86b63..2a2c4f8 100644
--- a/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/autoedit/AutoEditStrategyForTabs.java
+++ b/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/autoedit/AutoEditStrategyForTabs.java
@@ -117,7 +117,7 @@
 				offsetInLine = lineOffset + index;
 			}
 		}
-		if (offsetInLine > -1) {
+		if (offsetInLine > -1 && indentationWidth > 0) {
 			int remainder = offsetInLine % indentationWidth;
 			indentSize = indentationWidth - remainder;
 		}