test for null comment

This commit is contained in:
Eric House 2012-04-19 00:36:51 -07:00
parent fd18d8c95a
commit e5758766f7

View file

@ -60,9 +60,11 @@ public class XWListItem extends LinearLayout {
public void setComment( String text )
{
TextView view = (TextView)findViewById( R.id.text_item2 );
view.setVisibility( View.VISIBLE );
view.setText( text );
if ( null != text ) {
TextView view = (TextView)findViewById( R.id.text_item2 );
view.setVisibility( View.VISIBLE );
view.setText( text );
}
}
public void setDeleteCallback( DeleteCallback cb )