This is not actually an error, it simply causes the VS static analyzer to detect a warning where there is none.  GetProperty never returns NULL, if the property doesn't exist, it is created.