- Jun 6, 2020
- 11,559
- 4,422
Hey everyone, This question may sounds odd but I am stuck with it .
I have created a standard class and declare a panel into it and loading a layout into the panel that I declared after initializing it.
when I create the class from Activity everything is working fine .
but if I create the class from a service I get NullPointerException.
I have created a standard class and declare a panel into it and loading a layout into the panel that I declared after initializing it.
when I create the class from Activity everything is working fine .
but if I create the class from a service I get NullPointerException.
usercls_vv7 (java line: 77)
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'int anywheresoftware.b4a.BALayout.getWidth()' on a null object reference
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:155)
at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
at b4a.example.testapp.usercls._vv7(usercls.java:77)
at b4a.example.testapp.myservice._vvvv2(myservice.java:272)
at b4a.example.testapp.myservice._audioclient_onparticipants(myservice.java:238)
at java.lang.reflect.Method.invoke(Native...
Click to expand...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید