Exception in thread "main" java.lang.NullPointerException

So, i am trying to build a simple database (array of Car type).
the code is quite simple but for some reason i keep getting the same error after running the program (compiling went through). so i have 3 classes:

i searched for possible reasons and i came across the possibility that the array wasn't initialized, but then i changed to constructor to set model and color to "empty" and year to 0.
so now i have no clue, need your help guys.
Thanks!