Check for empty message type before incrementing required_field_index.
-rw-r--r-- 691 .gitignore
-rw-r--r-- 3653 CHANGELOG
-rw-r--r-- 898 LICENSE
-rw-r--r-- 366 README
drwxr-xr-x - cmake
drwxr-xr-x - docs
drwxr-xr-x - example
drwxr-xr-x - example_avr_double
drwxr-xr-x - example_unions
drwxr-xr-x - generator
-rw-r--r-- 13563 pb.h
-rw-r--r-- 21706 pb_decode.c
-rw-r--r-- 5765 pb_decode.h
-rw-r--r-- 13379 pb_encode.c
-rw-r--r-- 6410 pb_encode.h
drwxr-xr-x - tests
drwxr-xr-x - tools