layers: Move null check in ValidateBarriers
authorMark Lobodzinski <mark@lunarg.com>
Wed, 10 May 2017 15:34:13 +0000 (09:34 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Thu, 11 May 2017 18:29:27 +0000 (12:29 -0600)
commit3df9ec0f6416052e36ab85f3d937a9836aa7d767
tree004620d92cd2cb25476e8d8b3868441be2499484
parentaa2f52aee908f53a5c13a07c6bb08235b382964c
layers: Move null check in ValidateBarriers

The check for a non-null pointer was placed well after its first use.
Moved earlier to catch null ptr refs in all of the routine.

Change-Id: Iefc9a41c9c65d3b9f9524d13d585266d22b4ba54
layers/core_validation.cpp