Skip to content

Commit d289d9e

Browse files
committed
Fix condition in HasFeature method
1 parent c2d5a66 commit d289d9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>io.cryptolens</groupId>
55
<artifactId>cryptolens</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.10-STABLE</version>
7+
<version>1.11-STABLE</version>
88
<name>cryptolens</name>
99
<description>A client api to access Cryptolens Licensing API.</description>
1010
<url>https://github.com/cryptolens/cryptolens-java</url>
@@ -16,7 +16,7 @@
1616
<dependency>
1717
<groupId>com.google.code.gson</groupId>
1818
<artifactId>gson</artifactId>
19-
<version>2.8.5</version>
19+
<version>2.9.1</version>
2020
</dependency>
2121
<dependency>
2222
<groupId>junit</groupId>

src/main/java/io/cryptolens/methods/Helpers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public static boolean HasFeature(LicenseKey licenseKey, String featureName) {
348348
}
349349
}
350350

351-
if(features == null) {
351+
if(features == null || features.trim() == "") {
352352
// data object not found.
353353
return false;
354354
}

0 commit comments

Comments
 (0)