-
Notifications
You must be signed in to change notification settings - Fork 111
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
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference #322
Comments
I'm experiencing similar bug in version |
I'm also experiencing the similar issue in Version |
Is there any update with this issue?:) |
Suspected to be the same issue.
appsflyer_sdk: ^6.14.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Failed to handle method call
E/MethodChannel#af-api(32515): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
To Reproduce
Steps to reproduce the behavior:
Expected behavior
should generate deep link for my app
Screenshots
![Screenshot 2024-05-09 at 5 30 03 PM](https://private-user-images.githubusercontent.com/100585991/329236453-cc2133e8-6972-4aad-b837-42c409a318a4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3OTc4MDgsIm5iZiI6MTcxOTc5NzUwOCwicGF0aCI6Ii8xMDA1ODU5OTEvMzI5MjM2NDUzLWNjMjEzM2U4LTY5NzItNGFhZC1iODM3LTQyYzQwOWEzMThhNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwMVQwMTMxNDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNzliYzIzMmE4NjhjOGIxMjA3MWI3YzNhZjFiYWNmM2UyNzVkODc1M2E0NzhmM2UzNDcyMTFjMGNiOGI2Nzc5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.NynOIlFIT2JPk6Hgc1DSaU8en4jzBU1Tvl3MiHyPdcU)
Desktop (please complete the following information):
Additional context
I have declair appsflyerSdk in main.dart file before runApp(). Using its instance for generating deeplink for my application throws this error while generating deeplink.
Here is my flutter doctor -v commad respose:
macmini3@macmini3s-Mini ~ % flutter doctor -v
[✓] Flutter (Channel stable, 3.16.4, on macOS 14.2.1 23C71 darwin-arm64, locale
en-US)
• Flutter version 3.16.4 on channel stable at
/Users/macmini3/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2e9cb0aa71 (9 weeks ago), 2023-12-11 14:35:13 -0700
• Engine revision 54a7145303
• Dart version 3.2.3
• DevTools version 2.28.4
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/macmini3/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• ANDROID_HOME = /Users/macmini3/Library/Android/sdk
• Java binary at: /Applications/Android
Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
17.0.7+0-17.0.7b1000.6-10550314)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15C65
• CocoaPods version 1.15.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build
17.0.7+0-17.0.7b1000.6-10550314)
[✓] VS Code (version 1.86.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.42.0
[✓] Connected device (3 available)
• iPhone 15 Pro Max (mobile) • F776AE18-4237-4A5C-972D-3910C417F98C • ios
• com.apple.CoreSimulator.SimRuntime.iOS-17-2 (simulator)
• macOS (desktop) • macos •
darwin-arm64 • macOS 14.2.1 23C71 darwin-arm64
• Chrome (web) • chrome •
web-javascript • Google Chrome 121.0.6167.160
[✓] Network resources
• All expected network resources are available.
• No issues found!
The text was updated successfully, but these errors were encountered: