Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


EmmetjeGee

Member Since 28 Nov 2005
Offline Last Active Yesterday, 11:39 AM

#5200819 NullPointerException Problem

Posted by EmmetjeGee on 30 December 2014 - 10:03 AM

I always write a loop like that as:

        String line = reader.readLine();
        while (null != line) {
            // Do you thing here
            line = reader.readLine();
        }

So preventing extra checks




PARTNERS