Update MRI projects for Aluminium
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / services / sal / SalPortServiceImpl.java
index 865c74f59cb635c968caa2898342bb47fd6b598f..975389fdf4554bf20d047137d674cf96609f8b89 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -61,6 +61,6 @@ public final class SalPortServiceImpl
     }
 
     private Port getPortFromInput(final UpdatePortInput input) {
-        return input.getUpdatedPort().getPort().getPort().get(0);
+        return input.getUpdatedPort().getPort().nonnullPort().values().iterator().next();
     }
 }