fix nullpointerexception when pressing on = without entering an integer

Signed-off-by: Liew Zhao Wei <zhaoweiliew@gmail.com>