Buggy code:
final List < ModelNode > types = resourceResult . asList ( ) ; if ( ! ( types . isEmpty ( ) ) ) { typeNames = new ArrayList < String > ( ) ; for ( ModelNode type : types ) { typeNames . add ( type . asString ( ) ) ; } if ( ( childDescriptions == null ) && ( attrDescriptions == null ) ) { names = typeNames ; } } } else { ctx . printLine ( ( "Result<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>available<seq2seq4repair_space>for<seq2seq4repair_space>read-children-types<seq2seq4repair_space>request:<seq2seq4repair_space>" + outcome ) ) ; } } else { ctx . printLine ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>fetch<seq2seq4repair_space>type<seq2seq4repair_space>names:<seq2seq4repair_space>" + outcome ) ) ; } } else { ctx . printLine ( ( "The<seq2seq4repair_space>result<seq2seq4repair_space>for<seq2seq4repair_space>children<seq2seq4repair_space>type<seq2seq4repair_space>names<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>available:<seq2seq4repair_space>" + outcome ) ) ; } if ( resultNode . hasDefined ( STEP_2 ) ) { ModelNode resourceOutcome = resultNode . get ( STEP_2 ) ; if ( Util . isSuccess ( resourceOutcome ) ) { if ( resourceOutcome . hasDefined ( RESULT ) ) { final ModelNode resourceResult = resourceOutcome . get ( RESULT ) ; final List < Property > props = resourceResult . asPropertyList ( ) ; if ( ! ( props . isEmpty ( ) ) ) { final SimpleTable attrTable ; if ( attrDescriptions == null ) { attrTable = null ; } else { if ( additionalProps != null ) { String [ ] headers = new String [ 3 + ( additionalProps . length ) ] ; headers [ 0 ] = "ATTRIBUTE" ; headers [ 1 ] = "VALUE" ; headers [ 2 ] = "TYPE" ; int i = 3 ; for ( String additional : additionalProps ) { headers [ ( i ++ ) ] = additional . toUpperCase ( ) ; } attrTable = new SimpleTable ( headers ) ; } else { attrTable = new SimpleTable ( new String [ ] { "ATTRIBUTE" , "VALUE" , "TYPE" } ) ; } } SimpleTable childrenTable = ( childDescriptions == null ) ? null : new SimpleTable ( new String [ ] { "CHILD" , "MIN-OCCURS" , "MAX-OCCURS" } ) ; if ( ( ( typeNames == null ) && ( attrTable == null ) ) && ( childrenTable == null ) ) { typeNames = new ArrayList < String > ( ) ; } for ( Property prop : props ) { final StringBuilder buf = new StringBuilder ( ) ; if ( ( typeNames == null ) || ( ! ( typeNames . contains ( prop . getName ( ) ) ) ) ) { if ( attrDescriptions == null ) { buf . append ( prop . getName ( ) ) ; buf . append ( '=' ) ; buf . append ( prop . getValue ( ) . asString ( ) ) ; typeNames . add ( buf . toString ( ) ) ; buf . setLength ( 0 ) ; } else { final String [ ] line = new String [ attrTable . columnsTotal ( ) ] ; line [ 0 ] = prop . getName ( ) ; line [ 1 ] = prop . getValue ( ) . asString ( ) ; if ( attrDescriptions . hasDefined ( prop . getName ( ) ) ) { final ModelNode attrDescr = attrDescriptions . get ( prop . getName ( ) ) ; line [ 2 ] = getAsString ( attrDescr , TYPE ) ; if ( additionalProps != null ) { int i = 3 ; for ( String additional : additionalProps ) { line [ ( i ++ ) ] = getAsString ( attrDescr , additional ) ; } } } else { for ( int i = 2 ; i < ( line . length ) ; ++ i ) { line [ i ] = "n//a" ; } } attrTable . addLine ( line ) ; } } else if ( childDescriptions != null ) { if ( childDescriptions . hasDefined ( prop . getName ( ) ) ) { final ModelNode childDescr = childDescriptions . get ( prop . getName ( ) ) ; final Integer maxOccurs = getAsInteger ( childDescr , MAX_OCCURS ) ; childrenTable . addLine ( new String [ ] { prop . getName ( ) , getAsString ( childDescr , MIN_OCCURS ) , maxOccurs == null ? "n//a" : maxOccurs == ( Integer . MAX_VALUE ) ? "unbounded" : maxOccurs . toString ( ) } ) ; } else { <START_BUG> attrTable . addLine ( new String [ ] { prop . getName ( ) , "n//a" , "n//a" } ) ; <END_BUG> } } } StringBuilder buf = null ; if ( ( attrTable != null ) && ( ! ( attrTable . isEmpty ( ) ) ) ) { buf = new StringBuilder ( ) ; attrTable . append ( buf , true ) ; } if ( ( childrenTable != null ) && ( ! ( childrenTable . isEmpty ( ) ) ) ) { if ( buf == null ) { buf = new StringBuilder ( ) ; } else { buf . append ( "\n\n" ) ; } childrenTable . append ( buf , true ) ; } if ( buf != null ) { ctx . printLine ( buf . toString ( ) ) ; } } } else { ctx . printLine ( ( "Result<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>available<seq2seq4repair_space>for<seq2seq4repair_space>read-resource<seq2seq4repair_space>request:<seq2seq4repair_space>" + outcome ) ) ; } } else { ctx . printLine ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>fetch<seq2seq4repair_space>attributes:<seq2seq4repair_space>" + outcome ) ) ; } } else { ctx . printLine ( ( "The<seq2seq4repair_space>result<seq2seq4repair_space>for<seq2seq4repair_space>attributes<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>available:<seq2seq4repair_space>" + outcome ) ) ; } } } else { ctx . printLine ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>fetch<seq2seq4repair_space>the<seq2seq4repair_space>list<seq2seq4repair_space>of<seq2seq4repair_space>children:<seq2seq4repair_space>" + outcome ) ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } } if ( names != null ) { printList ( ctx , names , l . isPresent ( parsedCmd ) ) ; }

Fix:
childrenTable . addLine ( new String [ ] { prop . getName ( ) , "n//a" , "n//a" } ) ;