Skip to content

Commit e3eba3b

Browse files
committed
Bugfix release
1 parent 35715f6 commit e3eba3b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

tmc-plugin/manifest.mf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ OpenIDE-Module-Requires:
66
org.openide.windows.IOProvider,
77
org.openide.windows.WindowManager
88
OpenIDE-Module-Install: fi/helsinki/cs/tmc/actions/TmcModuleInstall.class
9-
OpenIDE-Module-Specification-Version: 0.8.12
9+
OpenIDE-Module-Specification-Version: 0.8.14

tmc-plugin/src/fi/helsinki/cs/tmc/spyware/HostInformationGenerator.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ private static String trySecureHash(byte[] mac) {
9191
} catch (NoSuchAlgorithmException ex) {
9292
log.log(Level.WARNING, "Missing sha256 hash: {0}", ex);
9393
return byteToHex(mac);
94+
} catch (Exception e) {
95+
log.log(Level.WARNING, "Exception while hashing: {0}", e);
96+
try {
97+
return byteToHex(mac);
98+
} catch (Exception ex) {
99+
return "error, e: " + ex.toString();
100+
}
94101
}
95102
}
96103

0 commit comments

Comments
 (0)