Re: Week 9 Exercise 18 Moving

38 views
Skip to first unread message
Message has been deleted

hawk...@gmail.com

unread,
Aug 2, 2017, 8:56:50 PM8/2/17
to mooc.fi, hawk...@gmail.com
Never mind, im an idiot.
I forgot to initialise the array in the Box class

On Thursday, August 3, 2017 at 1:54:08 AM UTC+1, hawk...@gmail.com wrote:


Hi,

I'm having problems with week exercise 18 Moving on course Java Part 2.



The link to my work is here: PASTE TMC PASTEBIN 

Getting an error:
Exception in thread "main" java.lang.NullPointerException
at moving.domain.Box.getVolume(Box.java:42)
at moving.domain.Box.addThing(Box.java:24)
at moving.Main.main(Main.java:12)
Have tried editing but not sure where I've gone wrong.

Kind regards
Reply all
Reply to author
Forward
0 new messages