Yang file scanner bug fix.

Change-Id: Id67b0c519581adb34a72ef363470f8d39877823f
diff --git a/utils/yangutils/src/main/java/org/onosproject/yangutils/utils/io/impl/YangFileScanner.java b/utils/yangutils/src/main/java/org/onosproject/yangutils/utils/io/impl/YangFileScanner.java
index 6da8bcd..7c451e1 100644
--- a/utils/yangutils/src/main/java/org/onosproject/yangutils/utils/io/impl/YangFileScanner.java
+++ b/utils/yangutils/src/main/java/org/onosproject/yangutils/utils/io/impl/YangFileScanner.java
@@ -85,7 +85,7 @@
                 root = stack.pop();
                 file = new File(root);
                 filelist = file.listFiles();
-                if (filelist.length == 0) {
+                if ((filelist == null) || (filelist.length == 0)) {
                     continue;
                 }
                 for (File current : filelist) {