public long calculateChkSum() {
CRC32 crc = new CRC32();
crc.update(sMenuName.getBytes());
- crc.update(sName.getBytes());
- crc.update(sNameHtml.getBytes());
+ if(sName != null)
+ crc.update(sName.getBytes());
+ if(sNameHtml != null)
+ crc.update(sNameHtml.getBytes());
if(sAdditional!= null)
crc.update(sAdditional.getBytes());
if(sNotes!= null)