I have a wierd problem. I have the following code:
if (fbIntent.hasExtra("Link")) {
try{
postData[0]= fbIntent.getStringExtra("Link");
} catch (Exception e) {Log.d("fbIntent error",e.getMessage() );}
}
fbIntent.hasExtra("Link") is true. So the compiler goes into the if statement. But I am not able to get the string using fbIntent.getStringExtra("Link"). This I know from debugging in eclipse. When I run it, I get :
01-21 14:12:01.030: ERROR/AndroidRuntime(311): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.examples.Kikin/com.examples.Kikin.FacebookLogin}: java.lang.NullPointerException: println needs a message
Please help me.