Skip to content

Commit

Permalink
Merge pull request scottyab#72 from scottyab/bugfix/mount-reader-null…
Browse files Browse the repository at this point in the history
…-check

Added null check following issue scottyab#71
  • Loading branch information
stealthcopter committed May 11, 2018
2 parents 1a87fc4 + 8019212 commit 77919fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rootbeerlib/src/main/java/com/scottyab/rootbeer/RootBeer.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ public boolean checkForRWPaths() {
boolean result = false;

String[] lines = mountReader();

if (lines == null){
// Could not read, assume false;
return result;
}

for (String line : lines) {

// Split lines into parts
Expand Down

0 comments on commit 77919fc

Please sign in to comment.