Fix NPE when a driver has no parents

Change-Id: I15161fdcc89c5f36600fc6df225d42a373724507
diff --git a/cli/src/main/java/org/onosproject/cli/net/DriversListCommand.java b/cli/src/main/java/org/onosproject/cli/net/DriversListCommand.java
index 3ae2b8e..2b884bc 100644
--- a/cli/src/main/java/org/onosproject/cli/net/DriversListCommand.java
+++ b/cli/src/main/java/org/onosproject/cli/net/DriversListCommand.java
@@ -68,7 +68,7 @@
     private void printDriver(Driver driver) {
         if (outputJson()) {
             json(driver);
-        } else {
+        } else if (driver.parents() != null) {
             driver.parents().forEach(parent -> {
                 print(FMT, driver.name(), parent != null ? parent.name() : "none",
                            driver.manufacturer(), driver.hwVersion(), driver.swVersion());