Hi all, I’ve resumed developing my java gaming skills and have used the book “Killer Game Programming in Java”
To teach myself, I’m using the examples in the book and modifying them to create games, but I’ve hit a snag.
When running a build I get the following errors and I wondered is the book out of date and using incorrect syntax, does java even use buffered image in that form anymore? :
Exception in thread "main" java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:78)
at java.io.InputStreamReader.<init>(InputStreamReader.java:72)
at ImagesLoader.loadImagesFile(ImagesLoader.java:97)
at ImagesLoader.<init>(ImagesLoader.java:66)
at JackPanel.<init>(JackPanel.java:124)
at JumpingJack.<init>(JumpingJack.java:57)
at JumpingJack.main(JumpingJack.java:98)
When investigated further, this is one of the apparent errors in the coding:
BufferedReader br = new BufferedReader( new InputStreamReader(in));
I know this is a vague description of the problem, but as I don’t know what the problem is I don’t really know what to provide you any help would be appreciated!