I am running a .jar file on my macbook through terminal, as it will not load directly by me clicking it even though i have all the latest java updates. When i click the .jar file, I receive the following error:
Exception in thread "main" java.lang.NullPointerException
at YSFlightMU.<init>(YSFlightMU.java:169)
at YSFlightMU.main(YSFlightMU.java:2507)
I have read through a number of the Q&A's on the site; however, I still couldn't fix the issue. The two lines with issues (168 & 2507) are:
for (int i = 0; i < dir.length; i++)
and
YSFlightMU ysfmu = new YSFlightMU();