Skip to content

Commit

Permalink
Fix null crash in artnet config
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushmead committed Aug 11, 2024
1 parent 233143e commit af9f735
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ private void renderLabels(GuiGraphics guiGraphics) {
// renderLabel(guiGraphics, "artneti.notAuthorized", 5,75);
// } else {
if(TheatricalConfig.INSTANCE.CLIENT.artnetEnabled) {
if (TheatricalClient.getArtNetManager().getClient().hasReceivedPacket()) {
if (TheatricalClient.getArtNetManager().getClient() != null && TheatricalClient.getArtNetManager().getClient().hasReceivedPacket()) {
long inSeconds = Math.round((float) (System.currentTimeMillis() - TheatricalClient.getArtNetManager().getClient().getLastPacketMS()) / 1000);
renderLabel(guiGraphics, "artneti.lastReceived", -50, ipAddressBox.getY() + 5, inSeconds);
} else {
Expand Down

0 comments on commit af9f735

Please sign in to comment.