Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when changing scale in v6.2.0-beta.2 #2449

Open
1 of 2 tasks
Manuito83 opened this issue Dec 8, 2024 · 0 comments
Open
1 of 2 tasks

Error when changing scale in v6.2.0-beta.2 #2449

Manuito83 opened this issue Dec 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Manuito83
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Trying to change the 'initialScale' setting is producing an error in inAppWebView.

Expected Behavior

The code and logic was working as expected in v6.1.5 and before (changing the scale properly).

Steps with code example to reproduce

final InAppWebViewSettings newSettings = await inAppWebview.getSettings()!;
newSettings.initialScale = newSettings.initialScale! + 5;
inAppWebview!.setSettings(settings: newSettings);

Stacktrace/Logs

PlatformException(error, Attempt to invoke virtual method 'boolean java.lang.Integer.equals(java.lang.Object)' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Integer.equals(java.lang.Object)' on a null object reference

I/flutter (26634): 	at com.pichillilorenzo.flutter_inappwebview_android.webview.in_app_webview.InAppWebView.setSettings(InAppWebView.java:1005)

Flutter version

v3.24.5

Operating System, Device-specific and/or Tool

Android

Plugin version

v6.2.0-beta.2

Additional information

No response

Self grab

  • I'm ready to work on this issue!
@Manuito83 Manuito83 added the bug Something isn't working label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant