Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

How to solve the java.lang.NullPointerException?

$
0
0
When I run a program with serialEvent, the java.lang.NullPointerException occurs, but not everytime.

The messages processing given are as follows:

Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
java.lang.NullPointerException
at processing.mode.java.runner.Runner.findException(Runner.java:682)
at processing.mode.java.runner.Runner.reportException(Runner.java:627)
at processing.mode.java.runner.Runner.exception(Runner.java:570)
at processing.mode.java.runner.EventThread.exceptionEvent(EventThread.java:367)
at processing.mode.java.runner.EventThread.handleEvent(EventThread.java:255)
at processing.mode.java.runner.EventThread.run(EventThread.java:89)
Exception in thread "Thread-6" java.lang.NullPointerException
at processing.serial.Serial.serialEvent(Unknown Source)
at gnu.io.RXTXPort.sendEvent(RXTXPort.java:732)
at gnu.io.RXTXPort.eventLoop(Native Method)
at gnu.io.RXTXPort$MonitorThread.run(RXTXPort.java:1575)


Any help is greatly thanks!

Viewing all articles
Browse latest Browse all 1768

Trending Articles