Buggy code:
public class BaaSLoginTask extends AsyncTask < Void , Integer , Boolean > { private static final String TAG = "BaaSLoginTask" ; private static final String FACEBOOK = "FACEBOOK" ; private static final String GOOGLE = "GOOGLE" ; private static final String FACEBOOK_SECRET = "52001af9217446b6408ef593f56e3f1a" ; private static final String GOOGLE_SECRET = "-ZaokFIw9scM3ZSVwp0kJHU6" ; private Context mContext ; private String mProvider ; private String mToken ; private String mSecret ; private TaskCallbackBoolean mCallback ; private String mBaasProvider ; public BaaSLoginTask ( Context context , String provider , String token , TaskCallbackBoolean callback ) { } @ Override protected Boolean doInBackground ( Void ... arg0 ) { if ( mBaasProvider . equals ( "facebook" ) ) { BaasResult < BaasUser > baasResult = BaasUser . signupWithProviderSync ( mBaasProvider , mToken , mSecret ) ; Log . d ( BaaSLoginTask . TAG , BaasUser . current ( ) . toString ( ) ) ; Log . d ( BaaSLoginTask . TAG , baasResult . value ( ) . toString ( ) ) ; if ( baasResult . isSuccess ( ) ) { BaasUser user = BaasUser . current ( ) ; if ( user != null ) { Log . d ( BaaSLoginTask . TAG , user . toString ( ) ) ; BaasResult < BaasUser > userBaasResult = BaasUser . current ( ) . refreshSync ( ) ; if ( userBaasResult . isSuccess ( ) ) { Log . d ( BaaSLoginTask . TAG , "Successo" ) ; } else { Log . d ( BaaSLoginTask . TAG , "Fallito" ) ; return false ; } String UserDocId = BaasUser . current ( ) . getScope ( PRIVATE ) . getString ( "doc_id" ) ; if ( UserDocId == null ) { BaasDocument doc = new BaasDocument ( "linkable_users" ) ; JsonArray JSONUserLinks = new JsonArray ( ) ; doc . put ( "prenoteLinks" , JSONUserLinks ) ; BaasResult < BaasDocument > resDoc = doc . saveSync ( ) ; if ( resDoc . isSuccess ( ) ) { Log . d ( BaaSLoginTask . TAG , ( "Doc<seq2seq4repair_space>ID<seq2seq4repair_space>is:<seq2seq4repair_space>" + ( doc . getId ( ) ) ) ) ; user . getScope ( PRIVATE ) . put ( "doc_id" , doc . getId ( ) ) ; <START_BUG> double initFeedback = 4.3 ; <END_BUG> user . getScope ( REGISTERED ) . put ( "feedback" , initFeedback ) ; user . getScope ( REGISTERED ) . put ( "n_given" , 0 ) ; user . getScope ( REGISTERED ) . put ( "n_received" , 0 ) ; user . getScope ( REGISTERED ) . put ( "submits_without" , 0 ) ; user . getScope ( REGISTERED ) . put ( "submits_active" , 0 ) ; BaasResult < BaasUser > resUser = user . saveSync ( ) ; if ( resUser . isSuccess ( ) ) { Log . d ( BaaSLoginTask . TAG , "New<seq2seq4repair_space>user,<seq2seq4repair_space>document<seq2seq4repair_space>created" ) ; return true ; } else { Log . e ( BaaSLoginTask . TAG , "FATAL<seq2seq4repair_space>ERROR<seq2seq4repair_space>userScope<seq2seq4repair_space>not<seq2seq4repair_space>update" ) ; return false ; } } else { Log . e ( BaaSLoginTask . TAG , "FATAL<seq2seq4repair_space>ERROR<seq2seq4repair_space>document<seq2seq4repair_space>not<seq2seq4repair_space>created" ) ; return false ; } } else { Log . d ( BaaSLoginTask . TAG , "User<seq2seq4repair_space>already<seq2seq4repair_space>registered" ) ; return true ; } } else { Log . e ( BaaSLoginTask . TAG , "Error,user<seq2seq4repair_space>is<seq2seq4repair_space>NULL!" ) ; return false ; } } else if ( baasResult . isCanceled ( ) ) { if ( mBaasProvider . equals ( BaaSLoginTask . FACEBOOK ) ) this . publishProgress ( toast_fb_login_canc ) ; else this . publishProgress ( toast_google_login_canc ) ; } else if ( baasResult . isFailed ( ) ) { if ( mProvider . equals ( BaaSLoginTask . FACEBOOK ) ) this . publishProgress ( toast_fb_login_err ) ; else if ( mProvider . equals ( BaaSLoginTask . GOOGLE ) ) this . publishProgress ( toast_google_login_err ) ; } return false ; } else if ( mBaasProvider . equals ( "google" ) ) { return true ; } return false ; } @ Override protected void onProgressUpdate ( Integer ... values ) { } @ Override protected void onPostExecute ( Boolean result ) { } }

Fix:
double initFeedback = 4.99 ;