about string buffer
hi i have one problem in stringbuffer please anyone solve this problem here my code is there about the stringbuffer
StringBuffer=msg=null;
msg.append("Your leave has been successfully sanction from");
msg.append( " "+starttime[j-1]+" To "+endtime[j-1]+" ");
after that i have passing msg value in one function
s.send("mail.localhost.com",to_emailid," "+(String)session.getAttribute("userId")+" ","About the leave",msg.toString());
so its throwing null pointer exception lang exception please solve that problem why its show null pointer exception

