Skip to content

Commit

Permalink
Added null check following issue scottyab#71
Browse files Browse the repository at this point in the history
  • Loading branch information
stealthcopter committed May 11, 2018
1 parent 476f81f commit 8019212
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 @@ -278,6 +278,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 8019212

Please sign in to comment.