From ad692bead29353c5aa0bf65071de4c950404c0e4 Mon Sep 17 00:00:00 2001 From: Christian Schwartz Date: Tue, 21 Jan 2014 19:00:02 +0000 Subject: [PATCH] Assigned mapping parameter to instance variable, preventing NullPointerException during parseEvent --- src/com/limelight/input/EvdevHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/limelight/input/EvdevHandler.java b/src/com/limelight/input/EvdevHandler.java index e096fcd..094af71 100644 --- a/src/com/limelight/input/EvdevHandler.java +++ b/src/com/limelight/input/EvdevHandler.java @@ -36,6 +36,7 @@ public class EvdevHandler implements Runnable { public EvdevHandler(NvConnection conn, String device, GamepadMapping mapping) throws FileNotFoundException, IOException { this.conn = conn; + this.mapping = mapping; File file = new File(device); if (!file.exists()) throw new FileNotFoundException("File " + device + " not found");