mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
fix traccar nullpointer error
This commit is contained in:
parent
d68c5e04bd
commit
e5d7512d0a
@ -626,7 +626,9 @@ public class TraccarClientFactory {
|
||||
authorizedKey(HttpReportingUtil.trackerUser(), HttpReportingUtil.trackerPassword()),
|
||||
serverUrl(HttpReportingUtil.trackerServer())));
|
||||
String result = res.get();
|
||||
log.info("Group " + trackerGroupInfo.getGroupId() + " has been added to Traccar.");
|
||||
if (null != trackerGroupInfo) {
|
||||
log.info("Group " + trackerGroupInfo.getGroupId() + " has been added to Traccar.");
|
||||
}
|
||||
if (res.isDone() && result.charAt(0) == '{') {
|
||||
JSONObject obj = new JSONObject(result);
|
||||
if (obj.has("id")) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user