Skip to content

Fixed warnings found with static analysis tool#373

Merged
pkosko merged 1 commit intoflutter-tizen:masterfrom
pkosko:fixed_SVACE
May 6, 2022
Merged

Fixed warnings found with static analysis tool#373
pkosko merged 1 commit intoflutter-tizen:masterfrom
pkosko:fixed_SVACE

Conversation

@pkosko
Copy link
Copy Markdown
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
Copy Markdown
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