You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2014/03/04 12:50:41 UTC
svn commit: r1574045 -
/wookie/trunk/wookie-server/src/main/java/org/apache/wookie/helpers/ParticipantHelper.java
Author: scottbw
Date: Tue Mar 4 11:50:41 2014
New Revision: 1574045
URL: http://svn.apache.org/r1574045
Log:
added null guard for participant thumbnail URL when rendering
Modified:
wookie/trunk/wookie-server/src/main/java/org/apache/wookie/helpers/ParticipantHelper.java
Modified: wookie/trunk/wookie-server/src/main/java/org/apache/wookie/helpers/ParticipantHelper.java
URL: http://svn.apache.org/viewvc/wookie/trunk/wookie-server/src/main/java/org/apache/wookie/helpers/ParticipantHelper.java?rev=1574045&r1=1574044&r2=1574045&view=diff
==============================================================================
--- wookie/trunk/wookie-server/src/main/java/org/apache/wookie/helpers/ParticipantHelper.java (original)
+++ wookie/trunk/wookie-server/src/main/java/org/apache/wookie/helpers/ParticipantHelper.java Tue Mar 4 11:50:41 2014
@@ -101,7 +101,7 @@ public class ParticipantHelper {
Element element = new Element("participant");
element.setAttribute("id", participant.getParticipantId());
element.setAttribute("display_name", participant.getParticipantDisplayName());
- element.setAttribute("thumbnail_url", participant.getParticipantThumbnailUrl());
+ if (participant.getParticipantThumbnailUrl() != null) element.setAttribute("thumbnail_url", participant.getParticipantThumbnailUrl());
if (participant.getRole() != null) element.setAttribute("role", participant.getRole());
return element;
}