Fix not to issue session if user unauthorized.
[platform/upstream/iotivity.git] / cloud / account / src / main / java / org / iotivity / cloud / accountserver / resources / AccountResource.java
index 23d48a6..bde32bf 100644 (file)
@@ -216,8 +216,7 @@ public class AccountResource extends Resource {
         ArrayList<String> deviceList = response.getDeviceList();
         responseMap.put(Constants.RESPONSE_DEVICES, deviceList);
 
-        JSONUtil jsonUtil = new JSONUtil();
-        String responseJson = jsonUtil.writeJSON(responseMap);
+        String responseJson = JSONUtil.writeJSON(responseMap);
 
         return responseJson;
     }