Community
Participate
Working Groups
This method can return null if the operation is canceled. This is not clearly specified right now.
(In reply to comment #0) > This method can return null if the operation is canceled. This is not clearly > specified right now. It specifies that 'null' can be returned. What is the other thing that you would expect to get back if you cancel the operation?
When WAIT_YES is specified, I don't see null as a possible return value.
(In reply to comment #2) > When WAIT_YES is specified, I don't see null as a possible return value. Right, but cancel isn't mentioned in any of the cases explicitly. But again: what would you expect if it gets canceled? Anyway, I've added an additional blurb so that it's crystal clear.
.
(In reply to comment #3) > Right, but cancel isn't mentioned in any of the cases explicitly. But again: > what would you expect if it gets canceled? > Anyway, I've added an additional blurb so that it's crystal clear. I would expect null, but I think this should be mentioned in the doc. Also check all callers of this method, I found a couple of places where null is not handled.
Verified in I20110512-2000 that the Javadoc mentions the cancel case.