taiypeo / DeutschSim

A quantum circuit simulator, written in Java
MIT License
5 stars 1 forks source link

NullPointerException when deleting a gate #3

Closed taiypeo closed 7 years ago

taiypeo commented 7 years ago

Sometimes when trying to delete a gate, it doesn't highlight and a NullPointerException is thrown. How to trigger: add a gate, then try to delete it without moving your mouse cursor.

taiypeo commented 7 years ago

Fixed in https://github.com/QwertygidQ/DeutschSim/commit/93cbe39064bc674e9d9bb53b9500b7fd378c0395, although the gate is still not highlighted, unless you move the mouse cursor, or press a mouse button.