[libbluray-devel] BDJLoader: fix unloadN() when GUI hasn't been initialized
hpi1
git at videolan.org
Mon Apr 6 18:16:46 CEST 2015
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Apr 6 19:03:12 2015 +0300| [730bbcc3147dc6dde2414253964a8042d3946c49] | committer: hpi1
BDJLoader: fix unloadN() when GUI hasn't been initialized
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=730bbcc3147dc6dde2414253964a8042d3946c49
---
src/libbluray/bdj/java/org/videolan/BDJLoader.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/libbluray/bdj/java/org/videolan/BDJLoader.java b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
index f5429aa..89fe20c 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJLoader.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
@@ -241,7 +241,10 @@ public class BDJLoader {
private static boolean unloadN() {
try {
- GUIManager.getInstance().setVisible(false);
+ try {
+ GUIManager.getInstance().setVisible(false);
+ } catch (Error e) {
+ }
AppsDatabase db = AppsDatabase.getAppsDatabase();
More information about the libbluray-devel
mailing list