Avoid unnecessary dereferencing of potential null pointers
That pDoc can be null here and in previous 24065627 is somewhat fishy, but probably related to "NOTE: the sw.SwXAutoTextEntry unoapi test depends on pDoc = 0" from "fdo#72695: avoid double-free race condition for SwXTextField." As mstahl puts it: "hmm... theres some stupid unoapi test that inserts a field into an SwXAutoTextEntry which is a horribly odd class that doesn't have any way of creating SwXanything of its own SwDoc... so probably your commit is required after all." Change-Id: I2da77e1180e205eca274ce0330ee2a4d5aab29ac
Showing
Please
register
or
sign in
to comment