Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2006-01-03 16:56:38 +0000
committerDani Megert2006-01-03 16:56:38 +0000
commit361d06b4c9eaa54889d6aa670bc4fc67df0b2907 (patch)
tree761ce6f1a2f1655e9e9830f3fd81ffd9dd8e5dfc
parent1531d9886883c3625eddd808bb0a0d3ed54a6bac (diff)
downloadeclipse.jdt.ui-R3_1_maintenance.tar.gz
eclipse.jdt.ui-R3_1_maintenance.tar.xz
eclipse.jdt.ui-R3_1_maintenance.zip
-rw-r--r--org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/IndentAction.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/IndentAction.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/IndentAction.java
index 5f70cf5712..1bffab3db7 100644
--- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/IndentAction.java
+++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/IndentAction.java
@@ -239,6 +239,8 @@ public class IndentAction extends TextEditorAction {
wsStart= offset + slashes;
StringBuffer computed= indenter.computeIndentation(offset);
+ if (computed == null)
+ computed= new StringBuffer(0);
int tabSize= getTabSize();
while (slashes > 0 && computed.length() > 0) {
char c= computed.charAt(0);

Back to the top