Open GoogleCodeExporter opened 9 years ago
From 36789bee673cfc56fa6f2bb40801147c48a502e2 Mon Sep 17 00:00:00 2001
From: Ilya Basin <basinilya@gmail.com>
Date: Fri, 8 Nov 2013 11:12:31 +0400
Subject: [PATCH] fix NPE in MediaDescription#setAttribute() because
CandidateAttribute#attribute is null
http://code.google.com/p/ice4j/issues/detail?id=19
---
src/org/ice4j/ice/sdp/CandidateAttribute.java | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/org/ice4j/ice/sdp/CandidateAttribute.java
b/src/org/ice4j/ice/sdp/CandidateAttribute.java
index 35943de..7b2435a 100644
--- a/src/org/ice4j/ice/sdp/CandidateAttribute.java
+++ b/src/org/ice4j/ice/sdp/CandidateAttribute.java
@@ -38,6 +38,7 @@ public class CandidateAttribute extends AttributeField
public CandidateAttribute(Candidate candidate)
{
this.candidate = candidate;
+ this.attribute = new NameValue(NAME, null);
}
/**
--
1.7.9
Original comment by basini...@gmail.com
on 14 Nov 2013 at 2:41
Original issue reported on code.google.com by
basini...@gmail.com
on 5 Nov 2013 at 1:13