Skip to content

Commit

Permalink
Fix NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
Nilhcem committed May 6, 2013
1 parent 026ede5 commit ad5cff4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/com/nilhcem/hostseditor/core/HostsManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ public synchronized List<Host> getHosts(boolean forceRefresh) {
Log.e(TAG, "I/O error while opening hosts file", e);
} finally {
try {
reader.close();
if (reader != null) {
reader.close();
}
} catch (IOException e) {
Log.e(TAG, "Error while closing reader", e);
}
Expand Down

0 comments on commit ad5cff4

Please sign in to comment.