jdk/test/sun/management/jdp/JdpTestCase.java
changeset 37324 78e60b834fa4
parent 21646 38f9ba0664de
equal deleted inserted replaced
37323:e41872ef1390 37324:78e60b834fa4
   120      *
   120      *
   121      * @param payload A dictionary containing the data if the received Jdp packet.
   121      * @param payload A dictionary containing the data if the received Jdp packet.
   122      */
   122      */
   123     private void jdpPacketReceived(Map<String, String> payload) throws Exception {
   123     private void jdpPacketReceived(Map<String, String> payload) throws Exception {
   124         final String instanceName = payload.get("INSTANCE_NAME");
   124         final String instanceName = payload.get("INSTANCE_NAME");
   125         if (instanceName.equals(connection.instanceName)) {
   125         if (instanceName != null && instanceName.equals(connection.instanceName)) {
   126             packetFromThisVMReceived(payload);
   126             packetFromThisVMReceived(payload);
   127         } else {
   127         } else {
   128             packetFromOtherVMReceived(payload);
   128             packetFromOtherVMReceived(payload);
   129         }
   129         }
   130     }
   130     }