Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnitSizeType appears to be null every return #29

Open
adakitesystems opened this issue Jan 4, 2017 · 1 comment
Open

UnitSizeType appears to be null every return #29

adakitesystems opened this issue Jan 4, 2017 · 1 comment

Comments

@adakitesystems
Copy link

The command System.out.println(UnitType.Zerg_Zergling.size().toString()); crashes JRE with EXCEPTION_ACCESS_VIOLATION.

I was also not able to compare UnitSizeType objects such as getting a unit from self.getUnits() then comparing its UnitSizeType against UnitSizeType.Zerg_Zergling.size(). The comparison does not crash JRE, the comparison simply fails to return true when the two UnitSizeType objects should be equal. It appears .size() just returns null or some empty/irrelevant object every time no matter what the UnitType is.

Software:

  • Virtual machine Windows 7 32-bit
  • BWMirror 2.5
  • Oracle JDK 1.8u111 32-bit
  • NetBeans 8.2
@dgant
Copy link

dgant commented Apr 20, 2017

Just came here to report the same bug:

  • Almost every UnitType has a null UnitSizeType
  • The occasional UnitType that appeared to have a non-null UnitSizeType had some garbage value that wasn't equal to anything in the UnitSizeType enumeration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants