package org.xcolab.view.pages.contestmanagement.beans;

import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

public class BatchRegisterBean implements Serializable {

    @NotBlank
    private Boolean asGuests;

    @NotBlank
    private String batchText;

    public String getBatchText() {
        return batchText;
    }

    public void setBatchText(String batchText) {
        this.batchText = batchText;
    }

    public Boolean getAsGuests() {
        return asGuests;
    }

    public void setAsGuest(Boolean asGuests) {
        this.asGuests = asGuests;
    }

    @Override
    public String toString() {
        return "BatchRegisterBean [batchText='" + batchText + "', asGuests='" + asGuests.toString() + "']";
    }

}

@@ -217,17 +217,17 @@
 private 
-B
+b
 oolean a
@@ -452,17 +452,17 @@
  public 
-B
+b
 oolean g
@@ -535,17 +535,17 @@
 AsGuest(
-B
+b
 oolean a
@@ -725,26 +725,31 @@
 %22 + 
-asGuests.toString(
+String.valueOf(asGuests
 ) + 

Fix null pointer error for asGuests in batchRegister