NPE check in getTimeInMillis()

added a null check to getTimeInMillis()
and remove the null passed parameters
+200

You immediately want to point out a user mistake and don't try to fix it for him.