NPE fix
parent
6333b1e4b1
commit
16f15cc3c8
|
@ -276,8 +276,10 @@ public class MITREidDataService_1_1 implements MITREidDataService {
|
|||
writer.endArray();
|
||||
writer.name("resourceIds");
|
||||
writer.beginArray();
|
||||
for (String s : authReq.getResourceIds()) {
|
||||
writer.value(s);
|
||||
if(authReq.getResourceIds() != null) {
|
||||
for (String s : authReq.getResourceIds()) {
|
||||
writer.value(s);
|
||||
}
|
||||
}
|
||||
writer.endArray();
|
||||
writer.name("authorities");
|
||||
|
|
Loading…
Reference in New Issue