Changeset 315:efb821cc5d93 in finroc_core-java


Ignore:
Timestamp:
12.04.2019 08:28:15 (5 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Children:
316:bdff0b2569d2, 317:2aec00e297b1
Phase:
public
Message:

Fixes occasional NullPointerException when processing messages from remote parts notifying that ports have been disconnected (relevant for finstruct tool only)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • remote/RemoteRuntime.java

    r309 r315  
    806806            ArrayWrapper<RemoteConnector> iterable = list.getIterable(); 
    807807            for (int i = 0, n = iterable.size(); i < n; i++) { 
    808                 if ((!ownedConnectorsOnly) || iterable.get(i).getOwnerPortHandle() == portHandle) { 
    809                     removeConnector(iterable.get(i)); 
     808                RemoteConnector connector = iterable.get(i); 
     809                if (connector != null && ((!ownedConnectorsOnly) || connector.getOwnerPortHandle() == portHandle)) { 
     810                    removeConnector(connector); 
    810811                } 
    811812            } 
Note: See TracChangeset for help on using the changeset viewer.