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.

Bug 255817 - NullPointerException: The activatedFileObjects parameter cannot be null
Summary: NullPointerException: The activatedFileObjects parameter cannot be null
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Test Runner (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-08 21:52 UTC by emiddio
Modified: 2016-02-02 11:07 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 220444


Attachments
stacktrace (3.56 KB, text/plain)
2015-10-08 21:52 UTC, emiddio
Details
stacktrace (3.54 KB, text/plain)
2015-12-20 17:17 UTC, Vladimir Voskresensky
Details
stacktrace (3.54 KB, text/plain)
2015-12-21 23:14 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2015-10-08 21:52:20 UTC
Build: NetBeans IDE 8.1 RC (Build 201510012201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Windows 7

User Comments:
emiddio: trying to diff 2 text files




Stacktrace: 
java.lang.NullPointerException: The activatedFileObjects parameter cannot be null
   at org.openide.util.Parameters.notNull(Parameters.java:89)
   at org.netbeans.modules.php.spi.testing.create.CreateTestsSupport.create(CreateTestsSupport.java:121)
   at org.netbeans.modules.php.atoum.create.AtoumTestCreatorProvider.enable(AtoumTestCreatorProvider.java:57)
   at org.netbeans.modules.gsf.testrunner.ui.TestCreatorAction.enable(TestCreatorAction.java:119)
   at org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:209)
   at org.openide.actions.ToolsAction.generate(ToolsAction.java:240)
Comment 1 emiddio 2015-10-08 21:52:22 UTC
Created attachment 156636 [details]
stacktrace
Comment 2 Tomas Mysik 2015-10-09 06:02:58 UTC
Fanis, you are passing null to the SPI impls - this is incorrect I guess. I was not able to reproduce it but still, adding 81patch-candidate keyword (but it is up to you to decide, of course).

Thanks.
Comment 3 emiddio 2015-10-21 18:43:11 UTC
this bug has many duplicates - you cannot diff 2 .txt files, cannot diff 2 .wsdl files. seems cannot diff any 2 files that are not .java files. you can in all prev versions of netbeans.
Comment 4 Tomas Mysik 2015-10-22 06:23:22 UTC
(In reply to emiddio from comment #3)
> this bug has many duplicates

I see 7 duplicates but just from you :) Perhaps you could try a clean userdir [1]?

> you cannot diff 2 .txt files, cannot diff 2
> .wsdl files. seems cannot diff any 2 files that are not .java files. you can
> in all prev versions of netbeans.

Láďo, could you please verify that? If it is true, I would see it as a stopper for NB 8.1.

Thanks.
[1] http://wiki.netbeans.org/FaqAlternateUserdir
Comment 5 Jiri Kovalsky 2015-10-22 07:52:53 UTC
Product Version: NetBeans IDE 8.1 RC2 (Build 201510122201)
Java: 1.8.0_65; Java HotSpot(TM) 64-Bit Server VM 25.65-b01
Runtime: Java(TM) SE Runtime Environment 1.8.0_65-b17
System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)

I tried to multiselect two PHP files and "Tools > Diff" them but no exception was thrown. It also worked without problems with two Java files. I don't think this is a stopper for 8.1.
Comment 6 Jiri Kovalsky 2015-10-22 07:55:00 UTC
For the record, diffing two TXT files worked fine too.
Comment 7 Tomas Mysik 2015-10-22 08:04:19 UTC
Thanks Jirko, I am also not able to reproduce this issue.

Thanks.
Comment 8 emiddio 2015-10-23 16:17:52 UTC
strange that you cannot reproduce; this occurred for me with fresh nb81rc1 and nb8rc2 installations - after importing settings from nb801, and activating all checkboxes in tools/plugins/installed.

I also imported all plugins nb81rc2 offered to import from prev installation.

the error happens when select 2 files from file and/or favorites of same type - .txt or .wsdl, and right mouse/tools -- the tools dialog does not open - get exception; error does not occur doing the diff, but trying to display the dialog that offers to diff.
Comment 9 Tomas Mysik 2015-10-26 06:08:44 UTC
I tried it from the Files view and it works for me without any problem (diffing 2 TXT files). Perhaps try a clean userdir _without_ importing your settings and other plugins?

Thanks.

Product Version: NetBeans IDE Dev (Build 20151023-a1348a230792)
Java: 1.7.0_80; Java HotSpot(TM) 64-Bit Server VM 24.80-b11
Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15
System: Linux version 3.19.0-31-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 10 emiddio 2015-11-11 00:30:34 UTC
start with fresh nb81 install; do not add any plugins, do not import any prev netbeans settings. go to tools/plugins/installed and activate all settings.

The error will now occur.

I have found if i deactivate php the problem goes away.


Product Version: NetBeans IDE 8.1 (Build 201510222201)
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\gbello\AppData\Roaming\NetBeans\8.1
Cache directory: C:\Users\gbello\AppData\Local\NetBeans\Cache\8.1
Comment 11 Vladimir Voskresensky 2015-12-20 17:17:03 UTC
Created attachment 157863 [details]
stacktrace

trying to Tools->Diff
Comment 12 Vladimir Voskresensky 2015-12-21 23:14:04 UTC
Created attachment 157883 [details]
stacktrace

trying to Diff two files from Favorites
Comment 13 Theofanis Oikonomou 2016-01-06 15:27:29 UTC
Changeset: 3a546dbe3e28
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2016-01-06 16:27
Message:
Comment 14 Theofanis Oikonomou 2016-01-06 15:29:24 UTC
I could not reproduce either but now you should not see the exception when trying to diff those files. Please verify in latest build. Thank you
Comment 15 Quality Engineering 2016-01-07 02:23:40 UTC
Integrated into 'main-silver', will be available in build *201601070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3a546dbe3e28
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #255817 - NullPointerException: The activatedFileObjects parameter cannot be null
Comment 16 Jiri Prox 2016-01-13 13:22:23 UTC
verified in trunk
Comment 17 Theofanis Oikonomou 2016-01-14 10:44:37 UTC
Transplanted in release 81 branch as http://hg.netbeans.org/releases/rev/b6a586cf09de and http://hg.netbeans.org/releases/rev/04c505af7824