Community
Participate
Working Groups
Trying to extract a function, selecting a return value is not possible. Both the list of possible return values and the option "no return value (void)" are greyed out. Clicking Next or Finish causes an Internal error: Root exception: java.lang.NullPointerException at org.eclipse.cdt.internal.ui.refactoring.extractfunction.ExtractStatement.determineReturnType(ExtractStatement.java:51) Steps to reproduce: 1. select lines 293-317 (inclusive) of attached file 2. Refactor->Extract Function
Attached file? ;)
Can you attach a sample file to help reproduce the problem?
Created attachment 189340 [details] Example for refactoring problem Sorry I forgot to attach the file.
I just tested it with 8.0M5 and it has it fixed. Leaving as NEW because I don't know whether you want to fix it in 7.x.
I think it's too late for 7.x, RC4 has already passed. http://www.eclipse.org/epp/download.php Thanks for testing with 8.0.
Fixed in HEAD