I'd personally rather see an == null rather than a != null and then flip the branches mentally, which was the original thought (rather than using an in-line tertiary if operator vs an if statement), in other words:

if(baseref==null)
  this.mybaseref = null
else
  this.mybaseref = baseref.getName()

or

this.mybaseref = (baseref==null ? null : baseref.getName())

I'm fine with the ? operator though