From 2ae8142f61347017b52ac87a18746dab0602a8ce Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 20 May 2017 19:19:19 +0200 Subject: [PATCH] Fix for the Xbox Controller --- .../hid/purejavahid/PureJavaHidDevice.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net/ash/HIDToVPADNetworkClient/hid/purejavahid/PureJavaHidDevice.java b/src/net/ash/HIDToVPADNetworkClient/hid/purejavahid/PureJavaHidDevice.java index 861e5bd..fc96d97 100644 --- a/src/net/ash/HIDToVPADNetworkClient/hid/purejavahid/PureJavaHidDevice.java +++ b/src/net/ash/HIDToVPADNetworkClient/hid/purejavahid/PureJavaHidDevice.java @@ -114,6 +114,7 @@ class PureJavaHidDevice implements HidDevice, InputReportListener { @Override public String getProductString() { + if(myDevice != null || myDeviceInfo.getProductString() == null) return ""; return myDeviceInfo.getProductString().trim(); }