Skip to content

Commit 380865c

Browse files
committed
Update error handling, #22
1 parent d36545d commit 380865c

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,6 @@ fabric.properties
101101
# Android studio 3.1+ serialized cache file
102102
.idea/caches/build_file_checksums.ser
103103
apikeys.json
104+
.idea/compiler.xml
105+
.idea/jarRepositories.xml
106+
.idea/workspace.xml

pom.xml

Lines changed: 1 addition & 1 deletion
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.9-STABLE</version>
7+
<version>1.10-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>

src/main/java/io/cryptolens/models/LicenseKey.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ public static LicenseKey LoadFromString(String RSAPubKey, String licenseString,
8585
licenseKey = Shared.defaultBase64Decoder(result.licenseKey);
8686
signature = Shared.defaultBase64Decoder(result.signature);
8787
} catch (Exception ex) {
88-
System.err.println(ex.getStackTrace()); return null;
88+
ex.printStackTrace();
89+
return null;
8990
}
9091

9192
try {
@@ -102,7 +103,7 @@ public static LicenseKey LoadFromString(String RSAPubKey, String licenseString,
102103
System.err.println("Signature check failed");
103104
return null;
104105
}
105-
} catch(Exception ex) {System.err.println(ex.getStackTrace()); return null;}
106+
} catch(Exception ex) {ex.printStackTrace(); return null;}
106107

107108
String s = new String(licenseKey, StandardCharsets.UTF_8);
108109
LicenseKey license = new Gson().fromJson(s, LicenseKey.class);

0 commit comments

Comments
 (0)