Skip to content

Commit

Permalink
fix: NPE when platform plugin delegate is null, mark: #alibaba/flutte…
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoAiolia committed Mar 22, 2024
1 parent 76ae8cd commit f6f73d5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.0.2
* Fix NPE when platform plugin delegate is null

# 1.0.1

* migrate to flutter 3.16.9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ open class FaradayActivity : FlutterActivity(), ResultProvider, ExclusiveAppComp

// 0x02
if (platformPlugin == null) {
platformPlugin = PlatformPlugin(activity, flutterEngine!!.platformChannel)
platformPlugin = PlatformPlugin(activity, flutterEngine!!.platformChannel, this)
}

// 0x03
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class FaradayFragment : FlutterFragment(), ResultProvider, FaradayContainer, Exc

// 0x02
if (platformPlugin == null) {
platformPlugin = PlatformPlugin(requireActivity(), flutterEngine!!.platformChannel)
platformPlugin = PlatformPlugin(requireActivity(), flutterEngine!!.platformChannel, this)
}

// 0x03
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: g_faraday
description: A very simple plugin for building hybrid stack apps with flutter
version: 1.0.1
version: 1.0.2
homepage: https://github.com/gfaraday/g_faraday

environment:
Expand Down

0 comments on commit f6f73d5

Please sign in to comment.