hello ,
i am trying to get device some configuration to adjust protocol it self as the following for example
if (deviceSession != null) {
enginekey = Context.getDeviceManager().lookupAttributeInteger(
deviceSession.getDeviceId(), "maping.engine", 1, true);
doorkey = Context.getDeviceManager().lookupAttributeInteger(
deviceSession.getDeviceId(), "maping.door", 2, true);
}
but i get java.nullpointerexception , i believe it's because of Context.getDeviceManager() , any advice or help ?
It should be available. Note that it won't be available for unit tests.
thats the exact problem i face
its not available for the unit test , any advice to bypass that ?
Disable unit tests for this class is the easiest solution.
hello ,
i am trying to get device some configuration to adjust protocol it self as the following for example
if (deviceSession != null) { enginekey = Context.getDeviceManager().lookupAttributeInteger( deviceSession.getDeviceId(), "maping.engine", 1, true); doorkey = Context.getDeviceManager().lookupAttributeInteger( deviceSession.getDeviceId(), "maping.door", 2, true); }
but i get java.nullpointerexception , i believe it's because of Context.getDeviceManager() , any advice or help ?