commit | 361d06b4c9eaa54889d6aa670bc4fc67df0b2907 | [log] [tgz] |
---|---|---|
author | Dani Megert <dmegert> | Tue Jan 03 16:56:38 2006 +0000 |
committer | Dani Megert <dmegert> | Tue Jan 03 16:56:38 2006 +0000 |
tree | 761ce6f1a2f1655e9e9830f3fd81ffd9dd8e5dfc | |
parent | 1531d9886883c3625eddd808bb0a0d3ed54a6bac [diff] |
Backported fix for bug 122261.
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 5f70cf5..1bffab3 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 @@ 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);