Committed by
Gerrit Code Review
Yang file scanner bug fix.
Change-Id: Id67b0c519581adb34a72ef363470f8d39877823f
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -85,7 +85,7 @@ public final class YangFileScanner { | ... | @@ -85,7 +85,7 @@ public final class YangFileScanner { |
85 | root = stack.pop(); | 85 | root = stack.pop(); |
86 | file = new File(root); | 86 | file = new File(root); |
87 | filelist = file.listFiles(); | 87 | filelist = file.listFiles(); |
88 | - if (filelist.length == 0) { | 88 | + if ((filelist == null) || (filelist.length == 0)) { |
89 | continue; | 89 | continue; |
90 | } | 90 | } |
91 | for (File current : filelist) { | 91 | for (File current : filelist) { | ... | ... |
-
Please register or login to post a comment