Fixed bug on NullAdapter initialization