From 0da7b708bc4321da6dc3311d75803ce939241b04 Mon Sep 17 00:00:00 2001 From: Toni Spets Date: Tue, 20 Jan 2015 21:30:34 +0200 Subject: [PATCH] Allow java viewer to load without manifest properly --- java/com/tigervnc/vncviewer/CConn.java | 2 +- java/com/tigervnc/vncviewer/VncViewer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/com/tigervnc/vncviewer/CConn.java b/java/com/tigervnc/vncviewer/CConn.java index 93420512..ec52f6e9 100644 --- a/java/com/tigervnc/vncviewer/CConn.java +++ b/java/com/tigervnc/vncviewer/CConn.java @@ -781,7 +781,7 @@ public class CConn extends CConnection implements Attributes attributes = manifest.getMainAttributes(); pkgDate = attributes.getValue("Package-Date"); pkgTime = attributes.getValue("Package-Time"); - } catch (IOException e) { } + } catch (java.lang.Exception e) { } Window fullScreenWindow = Viewport.getFullScreenWindow(); if (fullScreenWindow != null) diff --git a/java/com/tigervnc/vncviewer/VncViewer.java b/java/com/tigervnc/vncviewer/VncViewer.java index 1e0f2230..cc21c2e1 100644 --- a/java/com/tigervnc/vncviewer/VncViewer.java +++ b/java/com/tigervnc/vncviewer/VncViewer.java @@ -365,7 +365,7 @@ public class VncViewer extends javax.swing.JApplet build = attributes.getValue("Build"); buildDate = attributes.getValue("Package-Date"); buildTime = attributes.getValue("Package-Time"); - } catch (java.io.IOException e) { } + } catch (java.lang.Exception e) { } } } -- 2.39.5