mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 772890 - Guard against ArrayIndexOutOfBoundsException in GfxInfoThread. r=bjacob
This commit is contained in:
parent
641974a8c9
commit
79e2b2e3dd
@ -90,6 +90,11 @@ public class GfxInfoThread extends Thread {
|
||||
|
||||
// get the first config
|
||||
int numConfigs = returnedNumberOfConfigs[0];
|
||||
if (numConfigs == 0) {
|
||||
error("eglChooseConfig returned zero configs");
|
||||
return;
|
||||
}
|
||||
|
||||
EGLConfig[] returnedConfigs = new EGLConfig[numConfigs];
|
||||
if (!egl.eglChooseConfig(eglDisplay,
|
||||
configAttribs,
|
||||
|
Loading…
Reference in New Issue
Block a user