Arcnor/pixel-dungeon-gdx — pull request #52 by onix (2014-11-08 19:51:04+00:00)
Title: Fixed NPE when clicking outside game window and then returning back

Hi, I've found a bug (in Ubuntu, but probably actual for other OSes) when the game is running, you can click somewhere outside the window (e.g. on volume control, but the window must be on screen during these operations, not hide) and then returning back to game, there is ```NullPointerException``` with crash, because ```pointers``` map at this moment is empty, so ```up()``` method is not acceptable.
```
Exception in thread "LWJGL Application" java.lang.NullPointerException
at com.watabou.pd.desktop.DesktopInputProcessor.touchUp(DesktopInputProcessor.java:121)
at com.badlogic.gdx.backends.lwjgl.LwjglInput.processEvents(LwjglInput.java:326)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:199)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:114)
```

This pull request contains a patch/proposal to fix this defect.