Skip to content

Conversation

@rmtcasel
Copy link

@rmtcasel rmtcasel commented Dec 1, 2025

Fix: prevent null viewport or null scene list

Fix: prevent null viewport or null scene list
if (lightReceivers.size()==0)

// Fix: prevent null viewport or null scene list
if (viewPort == null || viewPort.getScenes() == null) {
Copy link
Contributor

@codex128 codex128 Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not possible for viewPort to be null at any point after processor initialization, and viewPort.getScenes() is never null.

Also, this code doesn't work. You inserted the if statement between another if's condition and body.

@codex128 codex128 closed this Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants