From 690f83772f20f14cb8ce82457164392bfeccad88 Mon Sep 17 00:00:00 2001 From: Sheedon Date: Thu, 24 Sep 2020 15:10:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E6=8C=87=E9=92=88=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mqtt/build.gradle | 4 ++-- mqtt/src/main/java/org/sheedon/mqtt/RealCall.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mqtt/build.gradle b/mqtt/build.gradle index 2ed4e13..ac6e774 100644 --- a/mqtt/build.gradle +++ b/mqtt/build.gradle @@ -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' diff --git a/mqtt/src/main/java/org/sheedon/mqtt/RealCall.java b/mqtt/src/main/java/org/sheedon/mqtt/RealCall.java index 7dc052f..269bfa4 100644 --- a/mqtt/src/main/java/org/sheedon/mqtt/RealCall.java +++ b/mqtt/src/main/java/org/sheedon/mqtt/RealCall.java @@ -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);