felixmartens/Wattfinder

App Crash due to non-concurrent HashMap Saeulen

Opened this issue · 0 comments

HashMap Saeulen is not a ConcurrentHashMap, but several Tasks try to access it. therefore the App can and does crash. Gets more likely the more loading happens.

solution:
public static ConcurrentHashMap<Integer,Saeule> Saeulen = new ConcurrentHashMap<>();