We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6525027 commit 0e243e4Copy full SHA for 0e243e4
TypeDBConsole.java
@@ -182,7 +182,7 @@ private static String userID() {
182
byte[] macHash = MessageDigest.getInstance("SHA-256").digest(mac);
183
byte[] truncatedHash = Arrays.copyOfRange(macHash, 0, 8);
184
return String.format("%X", ByteBuffer.wrap(truncatedHash).getLong());
185
- } catch (NoSuchAlgorithmException | IOException e) {
+ } catch (NoSuchAlgorithmException | IOException | NullPointerException e) {
186
return "";
187
}
188
0 commit comments