Skip to content

Commit fd67f26

Browse files
committed
Fix NPE on inner port
Signed-off-by: Chris Lavin <[email protected]>
1 parent 8ba6fb3 commit fd67f26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/com/xilinx/rapidwright/gui/SchematicScene.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,9 @@ private void createExpandedCellInnerPorts(EDIFHierCellInst inst) {
621621
// Map the inner port inst to the outer one so nets are aligned
622622
if (outerElkPort != null) {
623623
EDIFPortInst innerPortInst = port.getInternalPortInstFromIndex(i);
624-
portInstMap.put(inst.getPortInst(innerPortInst.getName()), outerElkPort);
624+
if (innerPortInst != null) {
625+
portInstMap.put(inst.getPortInst(innerPortInst.getName()), outerElkPort);
626+
}
625627
}
626628
}
627629
}

0 commit comments

Comments
 (0)