I am deeply confused that why I am getting null pointer exception in this code.
code:
Integer branchid = gd.getBranchid();//Getting null pointer exception in this line(234)
if(branchid != null)
clm.setBranchId(branchid);
else
clm.setBranchId(0);
Exception:
java.lang.NullPointerException
at com.ctl.addCampaign.CampaignController.saveCustomeridAndMobileNoNew(CampaignController.java:234)