Added missing validation.
Release 1.0.2 to fix jdk issue.