#fixed code
                              @Test
  public void testParse_StructArray_IgnoredForZeroLength() throws Exception {
    final JBBPFieldStruct parsed = JBBPParser.prepare("byte len; sss [len] { byte a; byte b; byte c;}  ushort;").parse(new byte[]{0x0, 0x01, (byte) 0x02});
    assertEquals(0,parsed.findFieldForType(JBBPFieldArrayStruct.class).size());
    assertEquals(0x0102, parsed.findFieldForType(JBBPFieldUShort.class).getAsInt());
  }
#vulnerable code 
                              @Test
  public void testParse_StructArray_IgnoredForZeroLength() throws Exception {
    final JBBPFieldStruct parsed = JBBPParser.prepare("byte len; sss [len] { byte a; byte b; byte c;}  ushort;").parse(new byte[]{0x0, 0x01, (byte) 0x02});
    assertNull(parsed.findFieldForType(JBBPFieldArrayStruct.class));
    assertEquals(0x0102, parsed.findFieldForType(JBBPFieldUShort.class).getAsInt());
  } 
                            #location 5 
                            #vulnerability type NULL_DEREFERENCE