# java.lang.NullPointerException: removeConfUICommands confUIEventsNode is null

**URL:** <https://devforum.zoom.us/t/java-lang-nullpointerexception-removeconfuicommands-confuieventsnode-is-null/54540>\
**Category:** Android\
**Created:** [July 22, 2021, 7:12am UTC](https://devforum.zoom.us/t/java-lang-nullpointerexception-removeconfuicommands-confuieventsnode-is-null/54540 "2021-07-22T07:12:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![1250021699](https://avatars.discourse-cdn.com/v4/letter/1/ec9cab/32.png) [@1250021699](https://devforum.zoom.us/u/1250021699)\
**Post date:** [July 22, 2021, 7:12am UTC](https://devforum.zoom.us/t/java-lang-nullpointerexception-removeconfuicommands-confuieventsnode-is-null/54540/1 "2021-07-22T07:12:51Z")

</div>

i try to extend the MeetingActivity but it continues to crash. When i change to extends another different acitvity then there is no crash.  
The version of android zoom sdk version is 5.5.1.1319. I also find others to face some similiar problems recently on this website. My phone is android 5.0.  
My gardle file’s configurations:  
compileSdkVersion:30  
minSdkVersion:21  
targetSdkVersion:30

log here:  
AndroidRuntime: FATAL EXCEPTION: main  
Process: com.example.project\_intern, PID: 12386  
java.lang.RuntimeException: Unable to destroy activity {com.example.project\_intern/com.example.project\_intern.Zoom\_camera}: java.lang.NullPointerException: removeConfUICommands confUIEventsNode is null  
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4817)  
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4835)  
at android.app.ActivityThread.access$1600(ActivityThread.java:197)  
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1710)  
at android.os.Handler.dispatchMessage(Handler.java:102)  
at android.os.Looper.loop(Looper.java:145)  
at android.app.ActivityThread.main(ActivityThread.java:6856)  
at java.lang.reflect.Method.invoke(Native Method)  
at java.lang.reflect.Method.invoke(Method.java:372)  
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)  
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)  
Caused by: java.lang.NullPointerException: removeConfUICommands confUIEventsNode is null  
at com.zipow.videobox.utils.meeting.c.a(ZmContextSessionUtils.java:115)  
at com.zipow.videobox.utils.meeting.c.b(ZmContextSessionUtils.java:106)  
at com.zipow.videobox.ConfActivity.removeUIListeners(ConfActivity.java:980)  
at com.zipow.videobox.ConfActivity.onDestroy(ConfActivity.java:958)  
at com.zipow.videobox.ConfActivityNormal.onDestroy(ConfActivityNormal.java:982)  
at android.app.Activity.performDestroy(Activity.java:6784)  
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1155)  
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4795)  
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4835)  
at android.app.ActivityThread.access$1600(ActivityThread.java:197)  
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1710)  
at android.os.Handler.dispatchMessage(Handler.java:102)  
at android.os.Looper.loop(Looper.java:145)  
at android.app.ActivityThread.main(ActivityThread.java:6856)  
at java.lang.reflect.Method.invoke(Native Method)  
at java.lang.reflect.Method.invoke(Method.java:372)  
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)  
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

By the way, do i have to extend the MeetingActivity provided by the sdk then i am able to embed the meeting UI activity into another activity? (like no full screen for the meeeting UI, the meeting UI only takes part of the phone screen)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [July 22, 2021, 5:12pm UTC](https://devforum.zoom.us/t/java-lang-nullpointerexception-removeconfuicommands-confuieventsnode-is-null/54540/2 "2021-07-22T17:12:30Z")

</div>

Hi @1250021699, thanks for using our SDK.

Sorry to hear you are running into this crash when extending the MeetingActivity. Can you please elaborate on what steps you are taking to do this so that we may better assist?

Thanks!

---

<div class="post-metadata">

**Author:** ![1250021699](https://avatars.discourse-cdn.com/v4/letter/1/ec9cab/32.png) [@1250021699](https://devforum.zoom.us/u/1250021699)\
**Post date:** [July 26, 2021, 3:22am UTC](https://devforum.zoom.us/t/java-lang-nullpointerexception-removeconfuicommands-confuieventsnode-is-null/54540/3 "2021-07-26T03:22:42Z")

</div>

is there documentation for example2 in android sdk? i doubt that i didnot implement the code in the right way. i simply extend the activity using MeetingActivity.

i do this because i want to embed the meeting UI into another acitivity. On the website [https://marketplace.zoom.us/docs/sdk/native-sdks/android/techniques/embed-zoom-meeting-ui](https://marketplace.zoom.us/docs/sdk/native-sdks/android/techniques/embed-zoom-meeting-ui) it just introduces how to configure the manifest.xml, but i still dont know how to embed the meeting UI. (Like the meeting UI just take half of the screen while another half of screen runing some other parts/activities)

i follow the guide on [https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-an-app/implement-features](https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-an-app/implement-features), and the only thing i want to add into my project is to embed the meeting UI into some specific position of my screen. How can i make it? Is there any guide on this?

public class Zoom\_camera extends MeetingActivity implements View.OnClickListener {

@Override  
public void onCreate(Bundle savedInstanceState) {  
super.onCreate(savedInstanceState);  
setContentView(R.layout.zoom\_camera);  
//initialize home page  
Homepage\_Ini(Zoom\_camera.this);  
// Call this method to initialize the zoom SDK  
initializeSdk(this);  
initViews();

```
}
```

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [July 26, 2021, 6:00pm UTC](https://devforum.zoom.us/t/java-lang-nullpointerexception-removeconfuicommands-confuieventsnode-is-null/54540/4 "2021-07-26T18:00:43Z")

</div>

Hi @1250021699,

Thanks for the additional information. Are you manually starting your class that extends `MeetingActivity`? If so, this will certainly cause issues. Also, please see our [support article](https://zoomdevelopersupport.zendesk.com/hc/en-us/articles/360056165831-How-to-Extend-the-MeetingActivity) regarding this approach to verify that this is being done correctly in within your app. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 26, 2021, 4:00am UTC](https://devforum.zoom.us/t/java-lang-nullpointerexception-removeconfuicommands-confuieventsnode-is-null/54540/5 "2021-08-26T04:00:49Z")

</div>

Closed on August 26, 2021, 4:00am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
