Skip to content

Commit 673b93c

Browse files
committed
fix: ignore setting property of 'null' objects
1 parent 8b0fc51 commit 673b93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: nativescript-angular/view-util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export class ViewUtil {
297297
}
298298

299299
public setProperty(view: NgView, attributeName: string, value: any, namespace?: string): void {
300-
if (namespace && !this.runsIn(namespace)) {
300+
if (!view || (namespace && !this.runsIn(namespace))) {
301301
return;
302302
}
303303

0 commit comments

Comments
 (0)