Page 1 of 1

LCD - java.lang.NullPointerException

Posted: 28 Aug 2019 11:07
by cmpts_cmp
Hi all,


Complete newbie but I'm using the Z-Uno connected to my Windows 10 PC.

I can program the ZUNO no issue, but when I use the LiquidCrystal library (#include <LiquidCrystal.h>) I get the following error when compiling, not even uploaded yet.

I've done the Burn Bootloader, and general "getting started" tasks, and all went well, but all seems to point to thie LCD library:

--- USING a list of libraries from:

      C:\Users\<USER>\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.1.5\libraries

      C:\Users\<USER>\Documents\Arduino\libraries

   *** Collecting prototypes...

Preprocessing file: Custom.c with SDCPP... 



Preprocessing file: Print.cpp with SDCPP... 

Compiling Print_sdcpp_.cpp ...

Preprocessing file: Stream.cpp with SDCPP... 

Compiling Stream_sdcpp_.cpp ...

Preprocessing file: HardwareSerial.cpp with SDCPP... 

Compiling HardwareSerial_sdcpp_.cpp ...

Preprocessing file: HLCore.cpp with SDCPP... 

Compiling HLCore_sdcpp_.cpp ...

Preprocessing file: Blink.cpp with SDCPP... 

compilation terminated.



Preprocessor failed!uCxx returned error code:1



exit status 1
processing.app.debug.RunnerException
   at cc.arduino.Compiler.lambda$callArduinoBuilder$3(Compiler.java:309)
   at processing.app.debug.MessageSiphon.run(MessageSiphon.java:96)
   at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
   at cc.arduino.Compiler.message(Compiler.java:525)
   at cc.arduino.i18n.I18NAwareMessageConsumer.message(I18NAwareMessageConsumer.java:80)
   at cc.arduino.MessageConsumerOutputStream.flush(MessageConsumerOutputStream.java:71)
   at cc.arduino.MessageConsumerOutputStream.write(MessageConsumerOutputStream.java:54)
   at java.io.OutputStream.write(OutputStream.java:75)
   at cc.arduino.Compiler.lambda$callArduinoBuilder$3(Compiler.java:307)
   ... 2 more




TIA!

Re: LCD - java.lang.NullPointerException

Posted: 28 Aug 2019 15:59
by PoltoS
I fear this library might require quite some adoption.

Re: LCD - java.lang.NullPointerException

Posted: 28 Aug 2019 16:06
by cmpts_cmp
Thanks. I think you're right. I'll see if it's possible to "swap" what's used in the sketch and use the ZUNO specific library.