Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

OrderBy filter throwing an exception when property value is null #10385

Closed
@cangussu

Description

@cangussu

When some properties used as orderBy expression are null, a type exception is thrown. It seems to affect 1.3.6 but not 1.3.5 version.

This plunker is the same one from orderBy documentation, except the null values for age property:
http://plnkr.co/k140lCbBrfzxLZhhky9d

TypeError: Cannot read property 'valueOf' of null
at compare (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.js:17584:24)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions