Skip to content

Commit

Permalink
Update VPlayerPanel.java
Browse files Browse the repository at this point in the history
should display error for null icons on VPlayerPanel Infotab. If pointer is still null then the icon seems to be disposed (probably on android) or just deliberately missing.
  • Loading branch information
kevlahnota authored Nov 18, 2024
1 parent 8d230c7 commit cbe48d0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,13 @@ public class InfoTab extends FDisplayObject {
private final VDisplayArea displayArea;

private InfoTab(FSkinImageInterface icon0, VDisplayArea displayArea0) {
icon = icon0;
// missing or invalid player infotab icon probably old theme or custom theme.
if (icon0 == null) {
System.err.println("Missing/Invalid VPlayerPanel icon for: " + displayArea0 + " , defaulting to blank icon. Check your theme/skin layout.");
icon = FSkinImage.BLANK;
} else {
icon = icon0;
}
displayArea = displayArea0;
}

Expand Down

0 comments on commit cbe48d0

Please sign in to comment.