NPE when accessing the status cache
While running Eclipse 2021-09 on a JDK 17, this error may be thrown multiple times.
java.lang.NullPointerException: Cannot invoke "java.util.List.isEmpty()" because "resources" is null
at com.vectrace.MercurialEclipse.team.cache.MercurialStatusCache.checkChildrenFor(MercurialStatusCache.java:1315)
at com.vectrace.MercurialEclipse.team.cache.MercurialStatusCache.setStatusToAncestors(MercurialStatusCache.java:1290)
at com.vectrace.MercurialEclipse.team.cache.MercurialStatusCache.parseStatus(MercurialStatusCache.java:1187)
at com.vectrace.MercurialEclipse.team.cache.MercurialStatusCache.updateStatusBatched(MercurialStatusCache.java:1485)
at com.vectrace.MercurialEclipse.team.cache.MercurialStatusCache.updateStatusInRoot(MercurialStatusCache.java:1445)
at com.vectrace.MercurialEclipse.team.cache.MercurialStatusCache.refreshStatus(MercurialStatusCache.java:1423)
at com.vectrace.MercurialEclipse.team.cache.MercurialStatusCache.access$0(MercurialStatusCache.java:1412)
at com.vectrace.MercurialEclipse.team.cache.MercurialStatusCache$ProjectUpdateJob.updateProject(MercurialStatusCache.java:151)
at com.vectrace.MercurialEclipse.team.cache.MercurialStatusCache$ProjectUpdateJob.run(MercurialStatusCache.java:133)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Edited by Amenel Voglozin