Skip to content

Commit

Permalink
Fix condition in HasFeature method
Browse files Browse the repository at this point in the history
  • Loading branch information
artemlos committed Sep 22, 2022
1 parent c2d5a66 commit d289d9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>io.cryptolens</groupId>
<artifactId>cryptolens</artifactId>
<packaging>jar</packaging>
<version>1.10-STABLE</version>
<version>1.11-STABLE</version>
<name>cryptolens</name>
<description>A client api to access Cryptolens Licensing API.</description>
<url>https://github.com/cryptolens/cryptolens-java</url>
Expand All @@ -16,7 +16,7 @@
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
<version>2.9.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/cryptolens/methods/Helpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public static boolean HasFeature(LicenseKey licenseKey, String featureName) {
}
}

if(features == null) {
if(features == null || features.trim() == "") {
// data object not found.
return false;
}
Expand Down

0 comments on commit d289d9e

Please sign in to comment.