Skip to content

Commit bed85f4

Browse files
committed
Fix null exception
1 parent 77cbe4d commit bed85f4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ android {
8787

8888
buildTypes {
8989
release {
90-
minifyEnabled false
90+
minifyEnabled true
9191
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
9292
signingConfig signingConfigs.release
9393
}

src/main/java/ca/yyx/hu/aap/AapTransport.kt

+5-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,11 @@ class AapTransport(
7474
if (mHandler == null) {
7575
return false
7676
}
77-
if (!mHandler!!.hasMessages(MSG_POLL)) {
78-
mHandler!!.sendEmptyMessage(MSG_POLL)
77+
mHandler?.let {
78+
if (!it.hasMessages(MSG_POLL))
79+
{
80+
it.sendEmptyMessage(MSG_POLL)
81+
}
7982
}
8083

8184
if (ret < 0) {

0 commit comments

Comments
 (0)