fix #1254 npe mediaeditfragment

fix #1254