Skip to content

Conversation

pkosko
Copy link
Contributor

@pkosko pkosko commented May 5, 2022

Fixed warnings:

  • not initialized database_ pointer
  • dereference without checking null

Fixed warnings:
* not initialized database_ pointer
* dereference without checking null
const flutter::MethodCall<flutter::EncodableValue>& method_call,
std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result) {
if (!webview_instance_) {
if (!webview_instance_ || !method_call.arguments()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving for now, but the overall logic should be improved and refactored soon. The HandleMethodCall method should not return without sending a result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants