Fix for klocwork issues.
[platform/upstream/iotivity.git] / service / simulator / java / eclipse-plugin / ServiceProviderPlugin / src / oic / simulator / serviceprovider / view / dialogs / UpdateResourceInterfaceDialog.java
index 60b7349..4fe07b5 100644 (file)
@@ -119,8 +119,11 @@ public class UpdateResourceInterfaceDialog extends TrayDialog {
     }
 
     private void initInterfaceList() {
-        for (Map.Entry<String, String> entry : updatedResInterfaces.entrySet()) {
-            ifTypesList.add(entry.getKey());
+        if (null != updatedResInterfaces) {
+            for (Map.Entry<String, String> entry : updatedResInterfaces
+                    .entrySet()) {
+                ifTypesList.add(entry.getKey());
+            }
         }
     }