Permalink
Browse files

should fix #66

  • Loading branch information...
1 parent 7924a45 commit 6bbda824d399350c646d970c7421e353eebceede @tobibo tobibo committed Mar 25, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/org/immopoly/android/c2dm/C2DMReceiver.java
@@ -35,7 +35,9 @@ public void onRegistered(Context context, String registrationId)
JSONObject obj = WebHelper.getHttpData(new URL(registerC2DM), false, context);
Log.d("C2DM", "registration with immopoly server YES");
Log.d("C2DM", "request->" + registerC2DM);
- Log.d("C2DM", "DATA " + obj.toString());
+ if (obj != null) {
+ Log.d("C2DM", "DATA " + obj.toString());
+ }
} catch (JSONException e) {
Log.d("C2DM", "registration with immopoly NOOOOOOOOOOOOOOO");
e.printStackTrace();

0 comments on commit 6bbda82

Please sign in to comment.