1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-27 14:32:06 +01:00

Prevent NPE in JingleManager

This commit is contained in:
vanitasvitae 2017-06-15 10:21:45 +02:00
parent b106ff8a8b
commit 366dbf66d6
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -89,8 +89,13 @@ public final class JingleManager extends Manager {
JingleContent content = jingle.getContents().get(0); JingleContent content = jingle.getContents().get(0);
JingleContentDescription description = content.getDescription(); JingleContentDescription description = content.getDescription();
JingleHandler jingleDescriptionHandler = descriptionHandlers.get(
JingleHandler jingleDescriptionHandler = null;
if (description != null) {
jingleDescriptionHandler = descriptionHandlers.get(
description.getNamespace()); description.getNamespace());
}
if (jingleDescriptionHandler == null) { if (jingleDescriptionHandler == null) {
//Unsupported Application //Unsupported Application
Jingle.Builder builder = Jingle.getBuilder(); Jingle.Builder builder = Jingle.getBuilder();