The replace(resultFrag.getId(), dialogonuevo) method is expecting a view id to use as the container for the fragment - the view will be replaced with the fragment). You are passing it the fragments ID, which is currently null.
Usually you would have a FrameLayout in your layout file, with an id of something like R.id.fragment, and your replace call would look like:
replace(R.id.fragment, dialogonuevo)
Also, it seems that your dialogonuevo fragment may be some kind of DialogFragment? In this case you would want to use the show() method of the dialogfragment, instead of a fragment transaction.