A NullPointerException will be thrown cause you are trying to add a value to 'null'. Never had considered a situation this kinds so I tried it out and thats what happened for me.
If you have declared the data type of Plate number as long, then obviously its initial value will be '0' and not 'null'. So, if you try to increment, it will run without any issues.