Added check to confirm JVM isn't null