Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing null pointer exception on the nextLine()
NullPointerException caused by attempting to invoke the method hasMoreTokens() on a StringTokenizer object (st) that is null. This happens in the nextLine() method of your FastReader class. # Fix Ensuring that st is properly initialized before calling hasMoreTokens() in the nextLine() method by modifying the nextLine() method to initialize st if it is null:
- Loading branch information