Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

fix NoSuchMethodError in filter - #1685

Open
michilu wants to merge 1 commit into
dart-archive:masterfrom
michilu:fix-NoSuchMethodError-in-filter
Open

michilu wants to merge 1 commit into
dart-archive:masterfrom
michilu:fix-NoSuchMethodError-in-filter

Conversation

@michilu

@michilu michilu commented Mar 9, 2015

Copy link
Copy Markdown
Contributor

I got errors when using filter for objects that is nullable.
I seem to be no substantial problem.
However, I want to suppress unwanted errors.

The null object does not have a method 'toList'.

NoSuchMethodError: method not found: 'toList'
Receiver: null
Arguments: [growable: false]

STACKTRACE:
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:45)
#1      Filter.call (package:angular/formatter/filter.dart:193:26)
...

Review on Reviewable

I got errors when using `filter` for objects that is nullable.
I seem to be no substantial problem.
However, I want to suppress unwanted errors.

```
The null object does not have a method 'toList'.

NoSuchMethodError: method not found: 'toList'
Receiver: null
Arguments: [growable: false]

STACKTRACE:
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:45)
#1      Filter.call (package:angular/formatter/filter.dart:193:26)
...
```
@rkirov

rkirov commented Mar 20, 2015

Copy link
Copy Markdown
Contributor

Can you add a test for this case?

@michilu

michilu commented Mar 22, 2015

Copy link
Copy Markdown
Contributor Author

@rkirov OK. I will try to write a test case. But I do not have any time, now. Please wait until April or later.

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

Labels

Development

Successfully merging this pull request may close these issues.

3 participants