diff --git a/bVNC/src/main/java/com/iiordanov/bVNC/RemoteCanvasActivity.java b/bVNC/src/main/java/com/iiordanov/bVNC/RemoteCanvasActivity.java index 40e99ffa..b43e3ede 100644 --- a/bVNC/src/main/java/com/iiordanov/bVNC/RemoteCanvasActivity.java +++ b/bVNC/src/main/java/com/iiordanov/bVNC/RemoteCanvasActivity.java @@ -310,7 +310,7 @@ public void onCreate(Bundle icicle) { try { setModes(); } catch (NullPointerException e) { - Log.d(TAG, "Ignored Exception while running setModes"); + Log.d(TAG, "Ignored NullPointerException while running setModes: " + Log.getStackTraceString(e)); } }; Runnable hideKeyboardAndExtraKeys = () -> { @@ -747,8 +747,8 @@ void setModes() { try { COLORMODEL cm = COLORMODEL.valueOf(connection.getColorModel()); remoteConnection.setColorModel(cm); - } catch (IllegalArgumentException e) { - e.printStackTrace(); + } catch (NullPointerException | IllegalArgumentException e) { + Log.w(TAG, "Could not set color model"); } canvas.setFocusableInTouchMode(true); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {