Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix a potential null reference bug

  • Loading branch information...
commit 791622509a7f257a9270a7e477d66079ae9c71f3 1 parent 932e77e
@matburt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/com/matburt/mobileorg/OrgFileParser.java
View
2  src/com/matburt/mobileorg/OrgFileParser.java
@@ -165,7 +165,7 @@ else if (numstars < nodeDepth) {
public BufferedReader getHandle(String filename) {
BufferedReader breader = null;
try {
- if (this.storageMode.equals("internal") || this.storageMode == null) {
+ if (this.storageMode == null || this.storageMode.equals("internal")) {
this.fstream = new FileInputStream("/data/data/com.matburt.mobileorg/files/" + filename);
}
else if (this.storageMode.equals("sdcard")) {
Please sign in to comment.
Something went wrong with that request. Please try again.