mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Add null-check for logging exceptions.
This commit is contained in:
parent
b8c6fbf9b1
commit
6641ddc043
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue