diff --git a/CHANGELOG.md b/CHANGELOG.md index bae652156..4862b0d3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +20.11.4 +* Adding mitigations to an issue that would surface when stopping a view that was not started. + 20.11.3 * Fixed a threading issue in the backend mode feature. diff --git a/gradle.properties b/gradle.properties index 3904766f4..5a2008956 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,7 +18,7 @@ # org.gradle.parallel=true # RELEASE FIELD SECTION -VERSION_NAME=20.11.3 +VERSION_NAME=20.11.4 GROUP=ly.count.sdk POM_URL=https://github.com/Countly/countly-sdk-java diff --git a/sdk-java/src/main/java/ly/count/sdk/java/Config.java b/sdk-java/src/main/java/ly/count/sdk/java/Config.java index be422404f..ed402ae61 100644 --- a/sdk-java/src/main/java/ly/count/sdk/java/Config.java +++ b/sdk-java/src/main/java/ly/count/sdk/java/Config.java @@ -265,7 +265,7 @@ public boolean restore(byte[] data) { /** * Countly SDK version to be sent in HTTP requests */ - protected String sdkVersion = "20.11.3"; + protected String sdkVersion = "20.11.4"; /** * Countly SDK name to be sent in HTTP requests diff --git a/sdk-java/src/main/java/ly/count/sdk/java/internal/ViewImpl.java b/sdk-java/src/main/java/ly/count/sdk/java/internal/ViewImpl.java index 4e7bd6db1..d87c8e3d5 100644 --- a/sdk-java/src/main/java/ly/count/sdk/java/internal/ViewImpl.java +++ b/sdk-java/src/main/java/ly/count/sdk/java/internal/ViewImpl.java @@ -66,6 +66,11 @@ public void stop(boolean lastView) { return; } + if (start == null) { + L.e("stop: We are trying to end a view that has not been started."); + return; + } + L.d("stop: lastView = " + lastView); if (ended) {