Program: 167599
Project: 167599
Buggy source:
/** 
 * On create
 */
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  serverId=getIntent().getExtras().getInt("String_Node_Str");
  server=Hermes.getInstance().getServerById(serverId);
  Settings settings=new Settings(this);
  if (server == null) {
    this.finish();
  }
  setTitle(server.getTitle());
  setContentView(R.layout.conversations);
  boolean isLandscape=(getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE);
  EditText input=(EditText)findViewById(R.id.input);
  input.setOnKeyListener(inputKeyListener);
  pager=(ViewPager)findViewById(R.id.pager);
  pagerAdapter=new ConversationPagerAdapter(this,server);
  pager.setAdapter(pagerAdapter);
  indicator=(ConversationIndicator)findViewById(R.id.titleIndicator);
  indicator.setServer(server);
  indicator.setViewPager(pager);
  indicator.setFooterColor(Color.parseColor("String_Node_Str"));
  indicator.setFooterLineHeight(1);
  indicator.setPadding(10,10,10,10);
  indicator.setFooterIndicatorStyle(IndicatorStyle.None);
  indicator.setSelectedColor(0xFF222222);
  indicator.setSelectedBold(false);
  indicator.setBackgroundColor(Color.parseColor("String_Node_Str"));
  historySize=settings.getHistorySize();
  if (server.getStatus() == Status.PRE_CONNECTING) {
    server.clearConversations();
    pagerAdapter.clearConversations();
    server.getConversation(ServerInfo.DEFAULT_NAME).setHistorySize(historySize);
  }
  float fontSize=settings.getFontSize();
  indicator.setTextSize(TypedValue.COMPLEX_UNIT_SP,35);
  input.setTypeface(Typeface.SANS_SERIF);
  Collection<Conversation> mConversations=server.getConversations();
  for (  Conversation conversation : mConversations) {
    if (conversation.getStatus() == Conversation.STATUS_SELECTED) {
      onNewConversation(conversation.getName());
    }
 else {
      createNewConversation(conversation.getName());
    }
  }
  int setInputTypeFlags=0;
  setInputTypeFlags|=InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;
  if (settings.autoCapSentences()) {
    setInputTypeFlags|=InputType.TYPE_TEXT_FLAG_CAP_SENTENCES;
  }
  if (isLandscape && settings.imeExtract()) {
    setInputTypeFlags|=InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE;
  }
  if (!settings.imeExtract()) {
    input.setImeOptions(input.getImeOptions() | EditorInfo.IME_FLAG_NO_EXTRACT_UI);
  }
  input.setInputType(input.getInputType() | setInputTypeFlags);
  scrollback=new Scrollback();
  getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}

Fixed version (ground truth):
/** 
 * On create
 */
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  serverId=getIntent().getExtras().getInt("String_Node_Str");
  server=Hermes.getInstance().getServerById(serverId);
  Settings settings=new Settings(this);
  if (server == null) {
    this.finish();
  }
  setTitle(server.getTitle());
  setContentView(R.layout.conversations);
  boolean isLandscape=(getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE);
  EditText input=(EditText)findViewById(R.id.input);
  input.setOnKeyListener(inputKeyListener);
  pager=(ViewPager)findViewById(R.id.pager);
  pagerAdapter=new ConversationPagerAdapter(this,server);
  pager.setAdapter(pagerAdapter);
  indicator=(ConversationIndicator)findViewById(R.id.titleIndicator);
  indicator.setServer(server);
  indicator.setViewPager(pager);
  indicator.setFooterColor(Color.parseColor("String_Node_Str"));
  indicator.setFooterLineHeight(1);
  indicator.setPadding(10,10,10,10);
  indicator.setFooterIndicatorStyle(IndicatorStyle.None);
  indicator.setSelectedColor(0xFF222222);
  indicator.setSelectedBold(false);
  indicator.setBackgroundColor(Color.parseColor("String_Node_Str"));
  historySize=settings.getHistorySize();
  if (server.getStatus() == Status.PRE_CONNECTING) {
    server.clearConversations();
    pagerAdapter.clearConversations();
    server.getConversation(ServerInfo.DEFAULT_NAME).setHistorySize(historySize);
  }
  float fontSize=settings.getFontSize();
  indicator.setTextSize(TypedValue.COMPLEX_UNIT_SP,35);
  input.setTypeface(Typeface.SANS_SERIF);
  Collection<Conversation> mConversations=server.getConversations();
  for (  Conversation conversation : mConversations) {
    if (conversation.getStatus() == Conversation.STATUS_SELECTED) {
      onNewConversation(conversation.getName());
    }
 else {
      createNewConversation(conversation.getName());
    }
  }
  input.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      openSoftKeyboard(v);
    }
  }
);
  int setInputTypeFlags=0;
  setInputTypeFlags|=InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;
  if (settings.autoCapSentences()) {
    setInputTypeFlags|=InputType.TYPE_TEXT_FLAG_CAP_SENTENCES;
  }
  if (isLandscape && settings.imeExtract()) {
    setInputTypeFlags|=InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE;
  }
  if (!settings.imeExtract()) {
    input.setImeOptions(input.getImeOptions() | EditorInfo.IME_FLAG_NO_EXTRACT_UI);
  }
  input.setInputType(input.getInputType() | setInputTypeFlags);
  scrollback=new Scrollback();
  getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}