mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
Refactor exception handling
This commit is contained in:
parent
a02c2ef6a4
commit
bc73844619
1 changed files with 2 additions and 4 deletions
|
@ -190,10 +190,8 @@ public class P2PSeedNodeSnapshot extends P2PSeedNodeSnapshotBase {
|
||||||
try {
|
try {
|
||||||
report.put(OnionParser.prettyPrint(host) + ".relativeNumberOfMessages." + messageType,
|
report.put(OnionParser.prettyPrint(host) + ".relativeNumberOfMessages." + messageType,
|
||||||
String.valueOf(((Counter) count).value() - referenceValues.get(messageType).value()));
|
String.valueOf(((Counter) count).value() - referenceValues.get(messageType).value()));
|
||||||
} catch (MalformedURLException ignore) {
|
} catch (MalformedURLException | NullPointerException ignore) {
|
||||||
log.error("we should never got here");
|
log.error("we should never have gotten here", ignore);
|
||||||
} catch (NullPointerException e) {
|
|
||||||
// we got no reference-Value if we got here. strange.
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue