getPackage() may return null