Revision: fb3cfe38c0ca Author: francois.ouellette01@xxxxxxxxx Date: Thu Jul 26 05:27:55 2012 Log: Fixed the EmbossNow null pointer problem http://code.google.com/p/brailleblaster/source/detail?r=fb3cfe38c0ca Modified: /src/main/org/brailleblaster/wordprocessor/DocumentManager.java =======================================--- /src/main/org/brailleblaster/wordprocessor/DocumentManager.java Thu Jul 26 04:03:03 2012 +++ /src/main/org/brailleblaster/wordprocessor/DocumentManager.java Thu Jul 26 05:27:55 2012
@@ -914,7 +914,7 @@ return documentNumber; } void fileEmbossNow () {- if ((brailleFileName == null) || (braille.view.getCharCount() == 0)) { + if ((brailleFileName == null) || (braille.view.getCharCount() == 0) ) {
new Notify (lh.localValue("noXlationEmb")); return; } @@ -925,7 +925,7 @@ if (data == null || data.equals("")) { return; } - File translatedFile = new File (translatedFileName); + File translatedFile = new File (brailleFileName); PrinterDevice embosserDevice; try { embosserDevice = new PrinterDevice (data.name, true);