Description
Code to reproduce:
JsonObject base = Json.createObjectBuilder()
.add("foo", Json.createArrayBuilder().add("foo").add("bar").build())
.add("bar", Json.createArrayBuilder().build())
.build();
JsonPatch p = Json.createPatchBuilder().remove("/foo/0").build();
p.apply(base);
Throws an execption:
javax.json.JsonException: '[]' contains no element for index 0