This shouldn't be needed, since you declared the column not-null in the database.  The auto-validation plugin will create an identical check at a higher level.