commit | 6c258f36e1b44d34f7d58dbad39c42b060a7d4cd | [log] [tgz] |
---|---|---|
author | Shashikanth VH <shashikanth.vh@huawei.com> | Thu Apr 28 17:53:23 2016 +0530 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed May 04 16:52:48 2016 +0000 |
tree | 94be749bd67025284d252e87382e473da1c66a6f | |
parent | eb04e7b9996da8ba308536b8d76ec3321749dc76 [diff] |
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) {