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 238281 - NullPointerException at org.cakephp.netbeans.module.CakePhpModule.getCakePhpDirectory
Summary: NullPointerException at org.cakephp.netbeans.module.CakePhpModule.getCakePhpD...
Status: RESOLVED FIXED
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: issues@third-party
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-12 20:57 UTC by jojopelfort
Modified: 2014-02-02 04:20 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204841


Attachments
stacktrace (3.18 KB, text/plain)
2013-11-12 20:57 UTC, jojopelfort
Details
stacktrace (3.18 KB, text/plain)
2013-11-26 20:40 UTC, salouri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jojopelfort 2013-11-12 20:57:35 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7

User Comments:
GUEST: Installed cakePHP plugin after which I couldn't open ANY files.

http://plugins.netbeans.org/plugin/44579

jojopelfort: my files opened for last session have been closed when I open netbeans




Stacktrace: 
java.lang.NullPointerException
   at org.cakephp.netbeans.module.CakePhpModule.getCakePhpDirectory(CakePhpModule.java:286)
   at org.cakephp.netbeans.util.CakeVersion.getCakePhpVersion(CakeVersion.java:174)
   at org.cakephp.netbeans.util.CakeVersion.getCakePhpVersionSplit(CakeVersion.java:207)
   at org.cakephp.netbeans.util.CakeVersion.<init>(CakeVersion.java:69)
   at org.cakephp.netbeans.util.CakeVersion.getInstance(CakeVersion.java:129)
   at org.cakephp.netbeans.ui.actions.CakePhpBaseMenuAction$CakeToolbarPresenter.<init>(CakePhpBaseMenuAction.java:256)
Comment 1 jojopelfort 2013-11-12 20:57:37 UTC
Created attachment 142107 [details]
stacktrace
Comment 2 Milutin Kristofic 2013-11-19 14:30:31 UTC
There is a bug in cakePHP plugin.
Comment 3 Exceptions Reporter 2013-11-26 13:16:02 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=204841
Comment 4 salouri 2013-11-26 20:40:03 UTC
Created attachment 142614 [details]
stacktrace

I got this problem after updating many plugins on my IDE. I can't tell which one of the 25 plugins caused it!
Comment 5 junichi11 2013-12-07 15:44:19 UTC
Please submit this to github issue tracker with detail steps and environments[1].

Please don't submit CakePHP plugin's issue to NetBeans bugzilla because NB team can't fix problems for third party plugin and I can't know problems.

[1] https://github.com/junichi11/cakephp-netbeans/issues?state=open

Thanks.
Comment 6 junichi11 2013-12-07 16:07:23 UTC
I've added to github[1].

I'll fix it. But I can't reproduce this problem.
So, Could you write your detail steps and environments to [1]?

Sorry for the inconvenience.

[1] https://github.com/junichi11/cakephp-netbeans/issues/72
Comment 7 junichi11 2013-12-08 03:53:00 UTC
I've fixed. Could you try to verify it (0.9.8.4-dev)?

https://github.com/junichi11/cakephp-netbeans/releases/tag/v0.9.8

Thanks.
Comment 8 edorem 2014-01-21 12:27:21 UTC
I just installed the cakephp plugin: 1385253973_org-cakephp-netbeans-0.9.8.nbm and I tried to open a .php file and this error occurred. Even when I try to open a .ctp file, I get the same error. I think there is a bug in the cakephp plugin.
Comment 9 junichi11 2014-01-21 12:53:25 UTC
@edorem

Please try to read the above comments.
As I wrote the above, if you have some issues, please submit them to github issue tracker.

Thanks.
Comment 10 junichi11 2014-02-02 04:20:11 UTC
Please try to use version 0.10.0.
This is available on Plugin Portal now.

Thanks.