HBASE-15639 Unguarded access to stackIndexes in Procedure#toStringDetails()

This commit is contained in:
tedyu 2016-04-13 08:42:30 -07:00
parent ae7e5e29f9
commit d41a7e6310
1 changed files with 3 additions and 2 deletions

View File

@ -252,10 +252,11 @@ public abstract class Procedure<TEnvironment> implements Comparable<Procedure> {
sb.append(" lastUpdate="); sb.append(" lastUpdate=");
sb.append(getLastUpdate()); sb.append(getLastUpdate());
if (stackIndexes != null) { int[] stackIndices = getStackIndexes();
if (stackIndices != null) {
sb.append("\n"); sb.append("\n");
sb.append("stackIndexes="); sb.append("stackIndexes=");
sb.append(Arrays.toString(getStackIndexes())); sb.append(Arrays.toString(stackIndices));
} }
return sb.toString(); return sb.toString();