blahblahbloopster / mindustry-client

My custom client for Anuke(n)'s Mindustry!
GNU General Public License v3.0
11 stars 4 forks source link

End pathfinding path button causes a crash when no paths are set. #2

Closed BigSpeck closed 4 years ago

BigSpeck commented 4 years ago

Platform: Windows

Build: Latest posted for download

Issue: End pathfinding path button causes a crash when no paths are set.

Steps to reproduce: End pathfinding path button causes a crash when no paths are set.

Crash log:

java.lang.IllegalStateException: Array is empty. at arc.struct.Array.first(Array.java:625) at mindustry.ui.fragments.HudFragment.lambda$null$32(HudFragment.java:389) at arc.scene.Element.lambda$clicked$2(Element.java:1004) at arc.scene.Element$3.clicked(Element.java:1013) at arc.scene.event.ClickListener.touchUp(ClickListener.java:77) at arc.scene.event.InputListener.handle(InputListener.java:33) at arc.scene.Scene.touchUp(Scene.java:339) at arc.input.InputMultiplexer.touchUp(InputMultiplexer.java:115) at arc.input.InputEventQueue.drain(InputEventQueue.java:71) at arc.backend.sdl.SdlInput.update(SdlInput.java:104) at arc.backend.sdl.SdlApplication.loop(SdlApplication.java:141) at arc.backend.sdl.SdlApplication.(SdlApplication.java:52) at mindustry.desktop.DesktopLauncher.main(DesktopLauncher.java:46)

Auserwaulth commented 4 years ago

Can confirm

buthed010203 commented 4 years ago

This is fixed

blahblahbloopster commented 4 years ago

Fixed