mirror of
https://github.com/TeamPiped/Piped-Backend
synced 2025-09-04 04:21:20 +02:00
Add null-check for logging exceptions.
This commit is contained in:
parent
b8c6fbf9b1
commit
6641ddc043
@ -289,7 +289,7 @@ public class ServerLauncher extends MultithreadedHttpServerLauncher {
|
||||
|
||||
private @NotNull HttpResponse getErrorResponse(Exception e) {
|
||||
|
||||
if (e instanceof ExecutionException)
|
||||
if (e.getCause() != null && e instanceof ExecutionException)
|
||||
e = (Exception) e.getCause();
|
||||
|
||||
if (!(e instanceof AgeRestrictedContentException || e instanceof ContentNotAvailableException))
|
||||
|
Loading…
x
Reference in New Issue
Block a user