Program: 6399
Project: 6399
Buggy source:
/** 
 * Called when the activity is first created.
 */
@Override public void onCreate(final Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (TRACE)   Debug.startMethodTracing("String_Node_Str");
  setContentView(R.layout.main);
  handler=new Handler();
  todoItemsStorage=new TodoItemsStorage(this);
  todoItemsStorage.open();
  tagsStorage=new TagsStorage(this);
  tagsStorage.open();
  tagsAdapter=Util.createTagsAdapter(this,null,R.layout.tag_list_item);
  tagsAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
  editingItemTagsAdapter=Util.createTagsAdapter(this,null,android.R.layout.simple_spinner_item);
  editingItemTagsAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
  getEditItemTagsWidget().setAdapter(editingItemTagsAdapter);
  setupDrawer();
  final SharedPreferences preferences=getPreferences(Activity.MODE_PRIVATE);
  final long currentTag;
  final Intent intent=getIntent();
  Integer tagId=extractTagIdFromIntent(intent);
  currentTag=tagId != null ? tagId : preferences.getLong("String_Node_Str",DBHelper.ALL_TAGS_METATAG_ID);
  hidingCompleted=preferences.getBoolean("String_Node_Str",false);
  setDefaultDue(preferences.getLong("String_Node_Str",-1));
  setDefaultPrio(preferences.getInt("String_Node_Str",1));
  sortingMode=TodoItemsSortingMode.fromOrdinal(preferences.getInt("String_Node_Str",TodoItemsSortingMode.PRIO_DUE_SUMMARY.ordinal()));
  setupFirstScreenWidgets();
  setupSecondScreenWidgets();
  registerForContextMenu(getMyListView());
  setupVoiceRecognition();
  setupAddButtonIcon();
  updateTitle();
  setResult(Activity.RESULT_OK);
  allTagsLoaderCallbacks=new AllTagsLoaderCallbacks(this,tagsAdapter);
  currentTagItemsLoaderCallbacks=new CurrentTagItemsLoaderCallbacks(this);
  editingItemTagsLoaderCallbacks=new EditingItemTagsLoaderCallbacks(this,editingItemTagsAdapter);
  final LoaderManager loaderManager=getLoaderManager();
  loaderManager.initLoader(ALL_TAGS_LOADER_ID,null,allTagsLoaderCallbacks);
  loaderManager.initLoader(CURRENT_TAG_ITEMS_LOADER_ID,null,currentTagItemsLoaderCallbacks);
  loaderManager.initLoader(EDITING_ITEM_TAGS_LOADER_ID,null,editingItemTagsLoaderCallbacks);
  setCurrentTag(currentTag);
  getApplicationContext().getContentResolver().registerContentObserver(TodoItemsStorage.CHANGE_NOTIFICATION_URI,false,contentObserver);
  getApplicationContext().getContentResolver().registerContentObserver(TagsStorage.CHANGE_NOTIFICATION_URI,false,contentObserver);
  runIntent(intent);
}

Fixed version (ground truth):
/** 
 * Called when the activity is first created.
 */
@Override public void onCreate(final Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (TRACE)   Debug.startMethodTracing("String_Node_Str");
  setContentView(R.layout.main);
  handler=new Handler();
  todoItemsStorage=new TodoItemsStorage(this);
  todoItemsStorage.open();
  tagsStorage=new TagsStorage(this);
  tagsStorage.open();
  tagsAdapter=Util.createTagsAdapter(this,null,R.layout.tag_list_item);
  tagsAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
  editingItemTagsAdapter=Util.createTagsAdapter(this,null,android.R.layout.simple_spinner_item);
  editingItemTagsAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
  getEditItemTagsWidget().setAdapter(editingItemTagsAdapter);
  setupDrawer();
  final SharedPreferences preferences=getPreferences(Activity.MODE_PRIVATE);
  final long currentTag;
  final Intent intent=getIntent();
  Integer tagId=extractTagIdFromIntent(intent);
  currentTag=tagId != null ? tagId : preferences.getLong("String_Node_Str",DBHelper.ALL_TAGS_METATAG_ID);
  hidingCompleted=preferences.getBoolean("String_Node_Str",false);
  setDefaultDue(preferences.getLong("String_Node_Str",-1));
  setDefaultPrio(preferences.getInt("String_Node_Str",1));
  sortingMode=TodoItemsSortingMode.fromOrdinal(preferences.getInt("String_Node_Str",TodoItemsSortingMode.PRIO_DUE_SUMMARY.ordinal()));
  setupFirstScreenWidgets();
  setupSecondScreenWidgets();
  registerForContextMenu(getMyListView());
  setupVoiceRecognition();
  setupAddButtonIcon();
  updateTitle();
  setResult(Activity.RESULT_OK);
  allTagsLoaderCallbacks=new AllTagsLoaderCallbacks(this,tagsAdapter);
  currentTagItemsLoaderCallbacks=new CurrentTagItemsLoaderCallbacks(this);
  editingItemTagsLoaderCallbacks=new EditingItemTagsLoaderCallbacks(this,editingItemTagsAdapter);
  final LoaderManager loaderManager=getLoaderManager();
  loaderManager.initLoader(ALL_TAGS_LOADER_ID,null,allTagsLoaderCallbacks);
  loaderManager.initLoader(CURRENT_TAG_ITEMS_LOADER_ID,null,currentTagItemsLoaderCallbacks);
  loaderManager.initLoader(EDITING_ITEM_TAGS_LOADER_ID,null,editingItemTagsLoaderCallbacks);
  setCurrentTag(currentTag);
  final ContentResolver contentResolver=getApplicationContext().getContentResolver();
  contentResolver.registerContentObserver(TodoItemsStorage.CHANGE_NOTIFICATION_URI,false,contentObserver);
  contentResolver.registerContentObserver(TagsStorage.CHANGE_NOTIFICATION_URI,false,contentObserver);
  runIntent(intent);
}