hi,
I am new in java programming

i run this program and get error message
(Exception in thread "main" java.lang.NullPointerException at CheckAge.main(CheckAge.java:12)

here is my full coding:

import java.util.Scanner;
class CheckAgeForDiscount {
public static void main(String args[]) {
Scanner myScanner = new Scanner(System.in);
int age;
double price = 0.00;
char reply;

System.out.print("How old are you? ");
age = myScanner.nextInt();
System.out.print("Have a coupon? (Y/N) ");
reply = myScanner.findInLine(".").charAt(0);

if (age >= 12 && age < 65) {
price = 9.25;
}
if (age < 12 || age >= 65) {
price = 5.25;
}
if ((reply == 'Y' || reply == 'y') &&
(age >= 12 && age < 65)) {
price -= 2.00;
}
System.out.print("Please pay $");
System.out.print(price);
System.out.print(". ");
System.out.println("Enjoy the show!");
}
}

Can anyone tell me the reason this error happen and a solution to this problem.
Thanks.