diff options
author | Dani Megert | 2006-01-03 16:56:38 +0000 |
---|---|---|
committer | Dani Megert | 2006-01-03 16:56:38 +0000 |
commit | 361d06b4c9eaa54889d6aa670bc4fc67df0b2907 (patch) | |
tree | 761ce6f1a2f1655e9e9830f3fd81ffd9dd8e5dfc | |
parent | 1531d9886883c3625eddd808bb0a0d3ed54a6bac (diff) | |
download | eclipse.jdt.ui-R3_1_maintenance.tar.gz eclipse.jdt.ui-R3_1_maintenance.tar.xz eclipse.jdt.ui-R3_1_maintenance.zip |
Backported fix for bug 122261.r312_v20060104-0800R3_1_2R3_1_maintenance
-rw-r--r-- | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/IndentAction.java | 2 |
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); |