|
|
Re: Handling exception
|
Posted: Jun 1, 2004 9:12 AM
|
|
Hi Twc
Thanks for the reply but still I am not clear.
The String userCampaignCode gets set from this statement.
String userCampaignCode = (String) JOptionPane.showInputDialog ( myPanel, TextManager.getText("MemberInvolvement.CampaignCode"), TextManager.getText("Me mberInvolvement.ConfirmAddTitle"), JOptionPane.PLAIN_MESSAGE );
If the cancel button is pressed in Dialog box constructed above , userCampaignCode is assigned a null value. This is Java functionality.
Now when I am tring to use this (tring to capture the cancel button of dialog box) I am getting this exception.
if(userCampaignCode == null) is causing the exception.
Any help ? Need to provide the solution as earlier as possible.
|
|