This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE Dev (Build 201607210002) Operating System = Linux version 4.4.0-31-generic running on amd64 Java; VM; Vendor = 1.8.0_102 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.102-b14 Reproducibility: Happens every time See code snippet below. Highlight the phrase "l_row.optDouble("price") * -1.0" Invoice Refactor -> Introduce -> Variable Get an error "Invalid Selection". private void fred() { JSONWrapper2 l_row = null; double l_subtotal = l_row.optDouble("credit") * l_row.optDouble("price") * -1.0; } That should be a valid refactor scenario.
Created attachment 161391 [details] IDE log