Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public String getCallback() {
public void call(Object... args) {
if (args != null && _methodChannel != null && !Utils.isNullOrEmpty(_event)
&& !Utils.isNullOrEmpty(_callback)) {
final String data = (args[0] != null ? args[0].toString() : "");
final String data = (args.length != 0 && args[0] != null ? args[0].toString() : "");
final Handler _handler = new Handler(Looper.getMainLooper());
_handler.post(new Runnable() {
@Override
Expand Down