Skip to content

Commit

Permalink
fixing crash
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Jun 25, 2024
1 parent 33e3252 commit 10cdd9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
applicationId "org.cagnulein.android_remote"
minSdkVersion 29
targetSdkVersion 32
versionCode 13
versionCode 14
versionName "2.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
setProperty("archivesBaseName", "android_remote")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ public void log(Level level, String msg) {
super.log(level, msg);
if(true/*debuglog*/) {
try {
writer.write(String.format("[%s] %s: %s%n", java.time.LocalDateTime.now(), level, msg));
writer.flush();
if(writer != null) {
writer.write(String.format("[%s] %s: %s%n", java.time.LocalDateTime.now(), level, msg));
writer.flush();
}
} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 10cdd9e

Please sign in to comment.