Handle border case where model is null
diff --git a/src/com/savoirfairelinux/sflphone/model/BubblesView.java b/src/com/savoirfairelinux/sflphone/model/BubblesView.java
index e2c872e..9853731 100644
--- a/src/com/savoirfairelinux/sflphone/model/BubblesView.java
+++ b/src/com/savoirfairelinux/sflphone/model/BubblesView.java
@@ -44,6 +44,8 @@
 				  mStatusText.setText(m.getData().getString("text"));*/

 			}

 		});

+		if(model != null)

+			thread.setModel(model);

 	}

 

 	public void setModel(BubbleModel model)

@@ -162,7 +164,7 @@
 					synchronized (surfaceHolder) {

 

 						// for the case the surface is destroyed while already in the loop

-						if(c == null) continue;

+						if(c == null || model == null) continue;

 

 						//Log.w(TAG, "Thread doDraw");

 						model.update();