summaryrefslogtreecommitdiff
path: root/BKUCommonGUI
diff options
context:
space:
mode:
Diffstat (limited to 'BKUCommonGUI')
-rw-r--r--BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/ViewerDialog.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/ViewerDialog.java b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/ViewerDialog.java
index cd04ad98..e643c876 100644
--- a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/ViewerDialog.java
+++ b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/ViewerDialog.java
@@ -151,6 +151,9 @@ public class ViewerDialog extends JDialog
InputStream content = hashData.getHashDataInput();
String mimeType = hashData.getMimeType();
String encoding = hashData.getEncoding();
+ if (encoding == null) {
+ encoding = "UTF-8";
+ }
JPanel hashDataPanel = createViewerPanel(messages.getString(BKUGUIFacade.MESSAGE_HASHDATA), content, mimeType, encoding, helpListener);
JPanel buttonPanel = createButtonPanel(saveListener, saveCommand);