Skip to content

Commit

Permalink
Fix NPE when ChannelTabLHFactory not implemented for a service
Browse files Browse the repository at this point in the history
Fixes #10698
  • Loading branch information
TobiGr committed Dec 26, 2023
1 parent 2b4357f commit 4327555
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ public void handleResult(@NonNull final ChannelTabInfo result) {
.getChannelTabLHFactory()
.fromQuery(tabHandler.getId(), tabHandler.getContentFilters(),
tabHandler.getSortFilter());
} catch (final ParsingException e) {
} catch (final ParsingException | NullPointerException e) {
// silently ignore the error, as the app can continue to function normally
// NPE happens when the service does not have a ChannelTabLHFactory
Log.w(TAG, "Could not recreate channel tab handler", e);
}
}
Expand Down

0 comments on commit 4327555

Please sign in to comment.