Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
suppress another irrelevant message and fix nullpointerexception in S…
Browse files Browse the repository at this point in the history
…oundsService.java
  • Loading branch information
xspanger3770 committed Nov 10, 2023
1 parent f9f2666 commit 0a7cb32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ public void onQuakeUpdate(QuakeUpdateEvent event) {

private void checkSounds() {
try {
if(GlobalQuake.instance.getClusterAnalysis() == null ||GlobalQuake.instance.getEarthquakeAnalysis() == null){
return;
}

for (Cluster cluster : GlobalQuake.instance.getClusterAnalysis().getClusters()) {
determineSounds(cluster);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.tinylog.Logger;

import java.io.*;
import java.net.ConnectException;
import java.net.SocketTimeoutException;
import java.time.LocalDateTime;
import java.util.Iterator;
Expand Down Expand Up @@ -207,7 +208,9 @@ public void runAvailabilityCheck(List<SeedlinkNetwork> toBeUpdated, Runnable onF
Callable<Void> task = () -> {
try {
SeedlinkCommunicator.runAvailabilityCheck(seedlinkNetwork, stationDatabase);
}catch(Exception e){
} catch(ConnectException ce){
Logger.trace(ce);
} catch(Exception e){
Logger.error(e);
}
return null;
Expand Down

0 comments on commit 0a7cb32

Please sign in to comment.