Skip to content

Commit

Permalink
空指针错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheedon committed Sep 24, 2020
1 parent 81db2ed commit 690f837
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mqtt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 6
versionName "1.2"
versionCode 7
versionName "1.2.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand Down
2 changes: 1 addition & 1 deletion mqtt/src/main/java/org/sheedon/mqtt/RealCall.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ protected void execute() {
client.dispatcher().addLocalTimeOutCall(delayEvent);
}

} catch (MqttException e) {
} catch (MqttException | NullPointerException e) {
e.printStackTrace();
client.dispatcher().finishedByLocal(id(), e);

Expand Down

0 comments on commit 690f837

Please sign in to comment.