Skip to content

Update device_picker.dart#13

Open
prahladawasthi wants to merge 1 commit into
terrabythia:masterfrom
prahladawasthi:master
Open

Update device_picker.dart#13
prahladawasthi wants to merge 1 commit into
terrabythia:masterfrom
prahladawasthi:master

Conversation

@prahladawasthi
Copy link
Copy Markdown
Contributor

Fixed NPE

════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following NoSuchMethodError was thrown building Builder:
The getter 'foundServices' was called on null.
Receiver: null
Tried calling: foundServices

The relevant error-causing widget was:
MaterialApp file://lib/main.dart:39:20
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 _DevicePickerState._updateDevices (package:/device_picker.dart:55:33)
#2 _DevicePickerState.initState (package://device_picker.dart:28:5)
#3 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4684:58)
#4 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
...
════════════════════════════════════════════════════════════════════════════════════════════════════

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant