posted 20 years ago
well, it depends on exactly what's giving you this NullPointerException, and on under what circumstances it happens. you'd have to post more details before i could really diagnose the problem.
but as a first rough guess, i suppose that when you're running as non-Administrator you don't have rights to access all the files and directories on the system, and the exception might arise because you're trying to read a file you're not allowed to read. if this is the case, there's nothing you can do except either handle the exception or always run as Administrator; i would then strongly recommend you handle the exception.