* fixed terrainGrid NPE on executor
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7825 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
1a72ca91b1
commit
db83e48019
@ -239,6 +239,8 @@ public class TerrainGrid extends TerrainQuad {
|
|||||||
|
|
||||||
if (q1 == null || q2 == null || q3 == null || q4 == null) {
|
if (q1 == null || q2 == null || q3 == null || q4 == null) {
|
||||||
try {
|
try {
|
||||||
|
if (executor == null)
|
||||||
|
executor = createExecutorService();
|
||||||
executor.submit(new UpdateQuadCache(cam, true)).get();
|
executor.submit(new UpdateQuadCache(cam, true)).get();
|
||||||
q1 = cache.get(cam.add(quadIndex[5]));
|
q1 = cache.get(cam.add(quadIndex[5]));
|
||||||
q2 = cache.get(cam.add(quadIndex[6]));
|
q2 = cache.get(cam.add(quadIndex[6]));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user