[Demonstration 1]

[Buggy Method]
@Override
protected void onTick() {
    // TODO Auto-generated method stub
    if (orderList.size() != 0 && transportAgents.size() != 0 && assemblyAgents.size() != 0) {
        CustomerOrder order = orderList.get(0);
        String orderType = order.getOrder();
        //for (CustomerOrder order : orderQueue) {
        // Fill the CFP message
        ACLMessage msg = new ACLMessage(ACLMessage.CFP);
        if (orderType.compareTo("Bearing") == 0) {
            for (int j = 0; j < transportAgents.size(); ++j) {
                msg.addReceiver(transportAgents.get(j));
            }
        } else {
            for (int j = 0; j < assemblyAgents.size(); ++j) {
                msg.addReceiver(assemblyAgents.get(j));
            }
        }
        msg.setProtocol(FIPANames.InteractionProtocol.FIPA_CONTRACT_NET);
        // We want to receive a reply in 10 secs
        // msg.setReplyByDate(new
        // Date(System.currentTimeMillis() +
        // 10000));
        //msg.setContent("dummy order");
        try {
            msg.setContentObject(order);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        //					Behaviour b = new ContractNetInit(this.getAgent(), msg);
        //					addBehaviour(tbf.wrap(b));
        myAgent.addBehaviour(new ContractNetInit(this.getAgent(), msg));
        orderList.remove(order);
        //}
    } else {
        System.out.println("Order queue is empty");
    }
}

[Buggy Hunk]
System.out.println("Order queue is empty");

[Patch]
System.out.println(myAgent.getLocalName()+" :Order queue is empty");

[Demonstration 2]

[Buggy Method]
private String getSoftKeyboardIdentifier(Context context) {
    // Fetch soft keyboard identifier using a cool trick: http://bit.ly/18w0yTJ
    return Settings.Secure.getString(context.getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);
}

[Buggy Hunk]
private String getSoftKeyboardIdentifier(Context context) {

[Patch]
private String getSoftKeyboardIdentifier(@NonNull Context context) {

[Demonstration 3]

[Buggy Method]
public String getAPIServerURL(Context context) {
    if (Constants.DEFAULT_HOST != null && getHostFromPreferences(context).contains(Constants.DEFAULT_HOST)) {
        APIServerURL = Constants.DEFAULT_HOST;
    } else {
        APIServerURL = getProtocolFromPreferences(context) + getHostFromPreferences(context) + COLON + getPortFromPreferences(context);
    }
    return APIServerURL;
}

[Buggy Hunk]
if (Constants.DEFAULT_HOST != null && getHostFromPreferences(context).contains(Constants.DEFAULT_HOST)) {

[Patch]
if (Constants.DEFAULT_HOST != null) {