IDEMPIERE-1138:Broadcast Message Problems

NPE when close message dialog
This commit is contained in:
hieplq 2016-08-20 01:16:00 +07:00
parent 9dca8269bb
commit eb581aa70e
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ import org.zkoss.zul.South;
*/
public class BroadcastMessageWindow extends Window implements IBroadcastMsgPopup,EventListener<Event>{
/**
*
*
*/
private static final long serialVersionUID = 1849434312706721390L;
@ -318,7 +318,7 @@ public class BroadcastMessageWindow extends Window implements IBroadcastMsgPopup
public MNote getMNote(MBroadcastMessage mbMessage) {
MNote note =null;
if(!mbMessage.getBroadcastType().equals(MBroadcastMessage.BROADCASTTYPE_Immediate)){
String sql = "SELECT * FROM AD_Note WHERE AD_BroadcastMessage_ID = ? AND AD_User_ID = ? AND AD_Client_ID = ?";
String sql = "SELECT * FROM AD_Note WHERE AD_BroadcastMessage_ID = ? AND AD_User_ID = ? AND AD_Client_ID in (?, 0)";
PreparedStatement pstmt = null;
ResultSet rs=null;
try {