com.tns.NativeScriptException: Calling js method getView failed EXCEPTION: Error in pages/groups/groups.html:5:8 ORIGINAL EXCEPTION: TypeError: Cannot set property 'width' of null ORIGINAL STACKTRACE: TypeError: Cannot set property 'width' of null at StylePropertyChangedHandler.ViewStyler.setNativeLayoutParamsProperty [as _applyProperty] (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/view.js:489:18) at StylePropertyChangedHandler.applyProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:1238:14) at Style._applyStyleProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:1003:25) at Style._applyProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:966:14) at Style._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:947:14) at Style.DependencyObservable._setValueInternal (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:305:18) at Style.DependencyObservable._setValue (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:138:14) at onLayoutParamsChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:150:11) at Style.DependencyObservable._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:211:13) at Style._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:945:45) ERROR CONTEXT: [object Object] File: "/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js, line: 365, column: 16 StackTrace: Frame: function:'DebugAppView._rethrowWithContext', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js', line: 365, column: 17 Frame: function:'DebugAppView.create', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js', line: 311, column: 18 Frame: function:'TemplateRef_.createEmbeddedView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/template_ref.js', line: 64, column: 14 Frame: function:'ViewContainerRef_.createEmbeddedView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view_container_ref.js', line: 106, column: 35 Frame: function:'ListViewComponent.onItemLoading', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/nativescript-angular/directives/list-view-comp.js', line: 71, column: 35 Frame: function:'Observable.notify', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/data/observable/observable.js', line: 155, column: 32 Frame: function:'ListViewAdapter.getView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/list-view/list-view.js', line: 162, column: 28

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by karan1149
, 1 year ago
Calling js method getView failed EXCEPTION: Error in pages/groups/groups.html:5:8 ORIGINAL EXCEPTION: TypeError: Cannot set property 'width' of null ORIGINAL STACKTRACE: TypeError: Cannot set property 'width' of null at
via GitHub by vchimev
, 10 months ago
19:36:50.484 11245 11245 W System.err: File: "/data/data/org.nativescript.apps/files/app/tns_modules/ui/core/view.js, line: 16, column: 21 11-10 19:36:50.484 11245 11245 W System.err: 11-10 19:36:50.484 11245 11245 W System.err: StackTrace: 11-10 19
via GitHub by Habeeb-mohamed
, 10 months ago
Calling js method onCreateView failed TypeError: Cannot read property 'length' of undefined File: "/data/data/org.nativescript.LazyFetch/files/app/tns_modules/nativescript-accordion/accordion.js, line: 75, column: 22 StackTrace: Frame: function
via GitHub by zaszlo
, 2 months ago
Calling js method getView failed TypeError: Cannot read property 'getItem' of null File: "file:///data/data/org.nativescript.iAngulAndro/files/app/tns_modules/tns-core-modules/ui/list-view/list-view-common.js, line: 97, column: 24 StackTrace
via GitHub by Zetazzz
, 1 year ago
Calling js method onInfo failed TypeError: Cannot read property 'msg' of undefined File: "/data/data/org.nativescript.audio/files/app/main-view-model.js, line: 119, column: 50 StackTrace: Frame: function:'playerOptions.infoCallback', file:'/data
com.tns.NativeScriptException: Calling js method getView failed EXCEPTION: Error in pages/groups/groups.html:5:8 ORIGINAL EXCEPTION: TypeError: Cannot set property 'width' of null ORIGINAL STACKTRACE: TypeError: Cannot set property 'width' of null at StylePropertyChangedHandler.ViewStyler.setNativeLayoutParamsProperty [as _applyProperty] (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/view.js:489:18) at StylePropertyChangedHandler.applyProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:1238:14) at Style._applyStyleProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:1003:25) at Style._applyProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:966:14) at Style._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:947:14) at Style.DependencyObservable._setValueInternal (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:305:18) at Style.DependencyObservable._setValue (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:138:14) at onLayoutParamsChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:150:11) at Style.DependencyObservable._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:211:13) at Style._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:945:45) ERROR CONTEXT: [object Object] File: "/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js, line: 365, column: 16 StackTrace: Frame: function:'DebugAppView._rethrowWithContext', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js', line: 365, column: 17 Frame: function:'DebugAppView.create', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js', line: 311, column: 18 Frame: function:'TemplateRef_.createEmbeddedView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/template_ref.js', line: 64, column: 14 Frame: function:'ViewContainerRef_.createEmbeddedView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view_container_ref.js', line: 106, column: 35 Frame: function:'ListViewComponent.onItemLoading', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/nativescript-angular/directives/list-view-comp.js', line: 71, column: 35 Frame: function:'Observable.notify', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/data/observable/observable.js', line: 155, column: 32 Frame: function:'ListViewAdapter.getView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/list-view/list-view.js', line: 162, column: 28
at com.tns.Runtime.callJSMethodNative(Native Method)
at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:865)
at com.tns.Runtime.callJSMethodImpl(Runtime.java:730)
at com.tns.Runtime.callJSMethod(Runtime.java:716)
at com.tns.Runtime.callJSMethod(Runtime.java:697)
at com.tns.Runtime.callJSMethod(Runtime.java:687)
at com.tns.gen.android.widget.BaseAdapter_frnal_ts_helpers_l55_c38__ListViewAdapter.getView(android.widget.BaseAdapter.java)
at android.widget.AbsListView.obtainView(AbsListView.java:2360)
at android.widget.ListView.makeAndAddView(ListView.java:1972)
at android.widget.ListView.fillDown(ListView.java:704)
at android.widget.ListView.fillFromTop(ListView.java:765)
at android.widget.ListView.layoutChildren(ListView.java:1716)
at android.widget.AbsListView.onLayout(AbsListView.java:2161)
at android.view.View.layout(View.java:17520)
at android.view.ViewGroup.layout(ViewGroup.java:5612)
at org.nativescript.widgets.CommonLayoutParams.layoutChild(CommonLayoutParams.java:189)
at org.nativescript.widgets.GridLayout.onLayout(GridLayout.java:353)
at android.view.View.layout(View.java:17520)
at android.view.ViewGroup.layout(ViewGroup.java:5612)
at org.nativescript.widgets.CommonLayoutParams.layoutChild(CommonLayoutParams.java:189)
at org.nativescript.widgets.GridLayout.onLayout(GridLayout.java:353)
at android.view.View.layout(View.java:17520)
at android.view.ViewGroup.layout(ViewGroup.java:5612)
at org.nativescript.widgets.CommonLayoutParams.layoutChild(CommonLayoutParams.java:189)
at org.nativescript.widgets.ContentLayout.onLayout(ContentLayout.java:73)
at android.view.View.layout(View.java:17520)
at android.view.ViewGroup.layout(ViewGroup.java:5612)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:17520)
at android.view.ViewGroup.layout(ViewGroup.java:5612)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
at android.view.View.layout(View.java:17520)
at android.view.ViewGroup.layout(ViewGroup.java:5612)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:17520)
at android.view.ViewGroup.layout(ViewGroup.java:5612)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2342)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2069)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1246)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6301)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)
at android.view.Choreographer.doCallbacks(Choreographer.java:683)
at android.view.Choreographer.doFrame(Choreographer.java:619)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 6 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.