Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrinterStateMonitior catches and fails the entire bot #56

Open
LegendaryGeek opened this issue Apr 17, 2021 · 0 comments
Open

PrinterStateMonitior catches and fails the entire bot #56

LegendaryGeek opened this issue Apr 17, 2021 · 0 comments
Assignees
Labels
defect Something isn't working

Comments

@LegendaryGeek
Copy link
Member



java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because "this.estimatedPrintTime" is null

at bot.modules.octopi.models.PrintJob.getEstimatedPrintTime(PrintJob.java:20) ~[classes!/:na]

at bot.modules.octopi.PrinterUtilities.createPrinterOutput(PrinterUtilities.java:36) ~[classes!/:na]

at bot.modules.octopi.events.ThreadPrinterStateMonitor.sendMessage(ThreadPrinterStateMonitor.java:112) ~[classes!/:na]

at bot.modules.octopi.events.ThreadPrinterStateMonitor.checkPrinter(ThreadPrinterStateMonitor.java:92) ~[classes!/:na]

at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[na:na]

at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) ~[na:na]

at bot.modules.octopi.events.ThreadPrinterStateMonitor.run(ThreadPrinterStateMonitor.java:69) ~[classes!/:na]


Exception in thread "Thread-2" java.lang.NullPointerException: Cannot invoke "discord4j.core.spec.EmbedCreateSpec.addField(String, String, boolean)" because "builder" is null

at bot.modules.octopi.PrinterUtilities.createPrinterOutput(PrinterUtilities.java:42)

at bot.modules.octopi.events.ThreadPrinterStateMonitor.sendMessage(ThreadPrinterStateMonitor.java:112)

at bot.modules.octopi.events.ThreadPrinterStateMonitor.checkPrinter(ThreadPrinterStateMonitor.java:92)

at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)

at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)

at bot.modules.octopi.events.ThreadPrinterStateMonitor.run(ThreadPrinterStateMonitor.java:69)```
@LegendaryGeek LegendaryGeek added the defect Something isn't working label Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants