AzeyZ / RoboCode07

LU Rumble group 07 ETSA02-2018
MIT License
3 stars 0 forks source link

Adding new Allies with for-loop causes NullpointerException #5

Closed AzeyZ closed 6 years ago

AzeyZ commented 6 years ago

Row 21-24 causes NullpointerException > robot disabled for(int i = 0; i<teamm8.length;i++) { allies.add(new Ally(teamm8[i])); }

MartinFredlund commented 6 years ago

Fixed with a if method, Null check.

filipbergman commented 6 years ago

nice job team