public Observation(final Request request, final CorrelationContext context) {
if (request == null) {
throw new NullPointerException("request must not be null");
} else if (request.getOptions().getObserve() != 0) {
throw new IllegalArgumentException("request has no observe=0 option");
}
this.request = request;
this.context = context;
}
java.lang.NullPointerException
at org.eclipse.leshan.server.californium.impl.InMemoryLwM2mObservationStoreTest.newObservation(InMemoryLwM2mObservationStoreTest.java:98)
at org.eclipse.leshan.server.californium.impl.InMemoryLwM2mObservationStoreTest.newObservation(InMemoryLwM2mObservationStoreTest.java:88)
at org.eclipse.leshan.server.californium.impl.InMemoryLwM2mObservationStoreTest.remove_by_registrationId(InMemoryLwM2mObservationStoreTest.java:78)
I would guess, the unboxing will cause the NullPointerException.
I would guess, the unboxing will cause the NullPointerException.
Add a