mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-27 06:22:07 +01:00
Prevent NPE in JingleManager
This commit is contained in:
parent
b106ff8a8b
commit
366dbf66d6
1 changed files with 7 additions and 2 deletions
|
@ -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(
|
|
||||||
description.getNamespace());
|
JingleHandler jingleDescriptionHandler = null;
|
||||||
|
if (description != null) {
|
||||||
|
jingleDescriptionHandler = descriptionHandlers.get(
|
||||||
|
description.getNamespace());
|
||||||
|
}
|
||||||
|
|
||||||
if (jingleDescriptionHandler == null) {
|
if (jingleDescriptionHandler == null) {
|
||||||
//Unsupported Application
|
//Unsupported Application
|
||||||
Jingle.Builder builder = Jingle.getBuilder();
|
Jingle.Builder builder = Jingle.getBuilder();
|
||||||
|
|
Loading…
Reference in a new issue