0

When i am opening my Arduino IDE on my Raspberry PI 4, its getting JAVA Error:

Exception in thread "main" java.lang.NullPointerException
    at processing.app.I18n._(I18n.java:51)
    at processing.app.Preferences.init(Preferences.java:210)
    at processing.app.Base.main(Base.java:117)

Not sure why this is happening. Please help me to solve this problem.

T A
  • 1,677
  • 4
  • 21
  • 29
  • @Stultuske The IDE itself is throwing the error, not the code he wrote. – gre_gor Sep 25 '20 at 12:42
  • @gre_gor for all we know his ide automatically runs something. if it is the ide, his best(better) option is to ask his question on the official pages of the IDE – Stultuske Sep 25 '20 at 13:11

1 Answers1

-1

i advise you to use optional to avoid NPE https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html

optional<Integer> optional
        = Optional.ofNullable(9455); 
CLAIN Cyril
  • 123
  • 9
  • I am running my Arduino IDE on terminal of my PI and getting this error. I am not running any type of Java code. I am just getting this error while running IDE from PI Terminal. – Siddharth Rastogi Sep 26 '20 at 17:28