diff --git a/widget/android/nsLookAndFeel.cpp b/widget/android/nsLookAndFeel.cpp index 5cd10af5c95f..09c31e960772 100644 --- a/widget/android/nsLookAndFeel.cpp +++ b/widget/android/nsLookAndFeel.cpp @@ -515,7 +515,7 @@ nsLookAndFeel::EnsureInitShowPassword() { if (!mInitializedShowPassword) { if (XRE_IsParentProcess()) { - mShowPassword = java::GeckoAppShell::GetShowPasswordSetting(); + mShowPassword = jni::IsAvailable() && java::GeckoAppShell::GetShowPasswordSetting(); } else { ContentChild::GetSingleton()->SendGetShowPasswordSetting(&mShowPassword); }