Thomas Vachuska

Fixed potential NPE in port-stats.

Change-Id: Id3cc83b0ca914223f2cf267605c29cc2093c313f
......@@ -215,7 +215,7 @@ public class OpenFlowDeviceProvider extends AbstractProvider implements DevicePr
for (OFPortStatsEntry entry : entries) {
try {
if (entry.getPortNo() == null || entry.getPortNo().getPortNumber() < 0) {
if (entry == null || entry.getPortNo() == null || entry.getPortNo().getPortNumber() < 0) {
continue;
}
DefaultPortStatistics.Builder builder = DefaultPortStatistics.builder();
......