1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Android: fix a crash in painting when size of the array to allocate is 0.

This commit is contained in:
Lukasz Kozakiewicz 2017-09-01 16:39:08 +01:00
parent c81c33404d
commit f4bfa6bec5

View file

@ -526,6 +526,10 @@ public:
sizeAllocated = sizeNeeded;
buffer = GlobalRef (env->NewIntArray (sizeNeeded));
}
else if (sizeNeeded == 0)
{
return;
}
if (jint* dest = env->GetIntArrayElements ((jintArray) buffer.get(), 0))
{