Please post your latest edition of the code, please post the error message, and please indicate by comment in the code which line is causing the NPE, something like
public class Foo {
...
Type: Posts; User: curmudgeon
Please post your latest edition of the code, please post the error message, and please indicate by comment in the code which line is causing the NPE, something like
public class Foo {
...
A basic rule to follow: Anything that needs to be repeated needs to be inside of the loop. So if you need to re-display a menu, then that code should be inside of the while loop, not before the while...