# App Crash Join meeting with param

**URL:** <https://devforum.zoom.us/t/app-crash-join-meeting-with-param/47602>\
**Category:** Android\
**Created:** [April 9, 2021, 4:57am UTC](https://devforum.zoom.us/t/app-crash-join-meeting-with-param/47602 "2021-04-09T04:57:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnan.haider3783](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/adnan.haider3783/32/25683_2.png) [@adnan.haider3783](https://devforum.zoom.us/u/adnan.haider3783)\
**Post date:** [April 9, 2021, 4:57am UTC](https://devforum.zoom.us/t/app-crash-join-meeting-with-param/47602/1 "2021-04-09T04:57:11Z")

</div>

**Description**  
I integrate zoom sdk in my app and all code is given by sdk link how to implement it then after  
when i start the app and crash it show null pointer exception i dont know why

java.lang.NullPointerException: Attempt to invoke interface method ‘int us.zoom.sdk.MeetingService.joinMeetingWithParams(android.content.Context, us.zoom.sdk.JoinMeetingParams, us.zoom.sdk.JoinMeetingOptions)’ on a null object reference

here is my code .  
after initilize the code

onlineClassBinding.createOnlineClassBtn.setOnClickListener(v → {  
String meetingNum = onlineClassBinding.meetingId.getText().toString();  
String meetingPassword = onlineClassBinding.meetingPassword.getText().toString();  
if (meetingNum.isEmpty() && meetingPassword.isEmpty()) {  
ZMToast.show(requireContext(), “Enter Meeting Id And Password”, ZMToast.LENGTH\_LONG);  
} else  
joinMeeting(requireContext(), meetingNum, meetingPassword);  
});

private void joinMeeting(Context context, String meetingNumber, String password) {  
MeetingService meetingService = ZoomSDK.getInstance().getMeetingService();  
JoinMeetingOptions options = new JoinMeetingOptions();  
JoinMeetingParams params = new JoinMeetingParams();  
params.displayName = “Adnan”; // TODO: Enter your name  
params.meetingNo = meetingNumber;  
params.password = password;  
meetingService.joinMeetingWithParams(context, params, options);  
}  
**Which Mobile Client SDK version?**  
zoom sdk verison 5.5.1.1317

---

<div class="post-metadata">

**Author:** ![donny.bao](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@donny.bao](https://devforum.zoom.us/u/donny.bao)\
**Post date:** [April 9, 2021, 5:54am UTC](https://devforum.zoom.us/t/app-crash-join-meeting-with-param/47602/2 "2021-04-09T05:54:10Z")

</div>

Hi @adnan.haider3783 Did you call the ZoomSDK.getInstance().initialize() method to initialize the SDK and call meetingService.joinMeetingWithParams method after onZoomSDKInitializeResult callback which indicates successful initialization?

---

<div class="post-metadata">

**Author:** ![studykube](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/studykube/32/26657_2.png) [@studykube](https://devforum.zoom.us/u/studykube)\
**Post date:** [May 2, 2021, 12:58pm UTC](https://devforum.zoom.us/t/app-crash-join-meeting-with-param/47602/3 "2021-05-02T12:58:19Z")

</div>

hi, I’m getting the same exact error , I’ve done  
the same thing as you said

---

<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:** [May 10, 2021, 5:26pm UTC](https://devforum.zoom.us/t/app-crash-join-meeting-with-param/47602/4 "2021-05-10T17:26:01Z")

</div>

Hi @studykube,

Apologies for the delayed response. Are you still experiencing a crash? If so, can you please provide the stack trace?

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:** [June 10, 2021, 3:26am UTC](https://devforum.zoom.us/t/app-crash-join-meeting-with-param/47602/5 "2021-06-10T03:26:57Z")

</div>

Closed on June 10, 2021, 3:26am UTC

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