Program: 34248
Project: 34248
Buggy source:
@SuppressLint("String_Node_Str") @Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_inbox);
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
  if (prefs.getBoolean(KEY_DATABASE_PASSPHRASE_SAVED,false)) {
    if (getIntent().hasCategory(Intent.CATEGORY_LAUNCHER)) {
      Log.i(TAG,"String_Node_Str");
      onCacheWordLocked();
      return;
    }
    mCacheWordHandler=new CacheWordHandler(this);
    mCacheWordHandler.connectToService();
    if (getIntent().hasExtra(LockScreenActivity.EXTRA_DATABASE_UNLOCKED)) {
      Intent firstStartIntent=new Intent(this,BackgroundService.class);
      firstStartIntent.putExtra(BackgroundService.PERIODIC_BACKGROUND_PROCESSING_REQUEST,BackgroundService.BACKGROUND_PROCESSING_REQUEST);
      this.startService(firstStartIntent);
    }
  }
  if (prefs.getBoolean(INBOX_FIRST_RUN,true)) {
    runFirstLaunchRoutine();
  }
  MessageProvider msgProv=MessageProvider.get(this);
  mMessages=msgProv.searchMessages(MessagesTable.COLUMN_BELONGS_TO_ME,String.valueOf(0));
  Collections.sort(mMessages);
  mInboxListView=new ListView(this);
  mInboxListView=(ListView)findViewById(android.R.id.list);
  setTitle(getResources().getString(R.string.inbox_activity_title));
  MessageAdapter adapter=new MessageAdapter(mMessages);
  setListAdapter(adapter);
}

Fixed version (ground truth):
@SuppressLint("String_Node_Str") @Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_inbox);
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
  if (prefs.getBoolean(KEY_DATABASE_PASSPHRASE_SAVED,false)) {
    Log.i(TAG,"String_Node_Str");
    if (getIntent().hasCategory(Intent.CATEGORY_LAUNCHER)) {
      Log.i(TAG,"String_Node_Str");
      onCacheWordLocked();
      return;
    }
    mCacheWordHandler=new CacheWordHandler(this);
    mCacheWordHandler.connectToService();
    if (getIntent().hasExtra(LockScreenActivity.EXTRA_DATABASE_UNLOCKED)) {
      Intent firstStartIntent=new Intent(this,BackgroundService.class);
      firstStartIntent.putExtra(BackgroundService.PERIODIC_BACKGROUND_PROCESSING_REQUEST,BackgroundService.BACKGROUND_PROCESSING_REQUEST);
      this.startService(firstStartIntent);
    }
  }
 else {
    Log.i(TAG,"String_Node_Str");
  }
  if (prefs.getBoolean(INBOX_FIRST_RUN,true)) {
    runFirstLaunchRoutine();
  }
  mInboxListView=new ListView(this);
  mInboxListView=(ListView)findViewById(android.R.id.list);
  setTitle(getResources().getString(R.string.inbox_activity_title));
  try {
    MessageProvider msgProv=MessageProvider.get(this);
    mMessages=msgProv.searchMessages(MessagesTable.COLUMN_BELONGS_TO_ME,String.valueOf(0));
    Collections.sort(mMessages);
    MessageAdapter adapter=new MessageAdapter(mMessages);
    setListAdapter(adapter);
  }
 catch (  Exception e) {
    Log.e(TAG,"String_Node_Str");
    if (prefs.getBoolean(KEY_DATABASE_PASSPHRASE_SAVED,false)) {
      Log.e(TAG,"String_Node_Str");
      onCacheWordLocked();
    }
 else {
      Toast.makeText(getBaseContext(),"String_Node_Str",Toast.LENGTH_LONG).show();
      Log.e(TAG,"String_Node_Str");
    }
  }
}