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 185029 - [69cat] NullPointerException at org.netbeans.modules.cnd.makeproject.MakeProjectEncodingQueryImpl.getEncoding
Summary: [69cat] NullPointerException at org.netbeans.modules.cnd.makeproject.MakeProj...
Status: RESOLVED DUPLICATE of bug 133234
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Alexey Vladykin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-26 16:27 UTC by Exceptions Reporter
Modified: 2010-04-26 19:29 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 57511


Attachments
stacktrace (2.92 KB, text/plain)
2010-04-26 16:28 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2010-04-26 16:27:56 UTC
This issue was reported manually by mmirilovic.
It already has 25 duplicates 


Build: NetBeans IDE 6.1 (Build 080905)
VM: OpenJDK Client VM, 1.6.0_0-b12, IcedTea6 1.3.1 (6b12-0ubuntu6.1) Runtime Environment, 1.6.0_0-b12
OS: Linux

User Comments:
GUEST: Open C++ project defined long ago in NetBeans 5.5.
Make works, but when I want to open any of the project source files to edit, I only get flashing No Entry sign in bottom right  corner of IDE and the above message.

i.fazekas@agria.hu

GUEST: Starting nebeans, exception while auto check for updates (24 found).

GUEST: -------------------------------------------------------------------------------
>Log Session: Thursday, August 14, 2008 7:17:57 PM CEST
>System Info: 
  Product Version         = NetBeans IDE 6.1 (Build 200804211638)
  Operating System        = Mac OS X version 10.5.4 running on i386
  Java; VM; Vendor        = 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119; Apple Inc.
  Runtime                 = Java(TM) 2 Runtime Environment, Standard Edition 1.5.0_13-b05-237
  Java Home               = /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
  System Locale; Encoding = de_CH (nb); MacRoman
  Home Directory          = /Users/prohaska
  Current Directory       = /
  User Directory          = /Users/prohaska/.netbeans/6.1
  Installation            = /Applications/NetBeans/NetBeans 6.1.app/Contents/Resources/NetBeans/nb6.1
                            /Applications/NetBeans/NetBeans 6.1.app/Contents/Resources/NetBeans/ide9
                            /Applications/NetBeans/NetB

GUEST: Creating a new C++ application with Makefile.

GUEST: Importing Scribus 1.3.4 (C++ code) from an existing directory. It apparently failed, with NullPointerException.
Then I tried opening the files; it also failed.

GUEST: Can't open source file

GUEST: Opening a C project file. I received an error related to configuration.xml. This C program was created on a different systsm and OS, but the same version of Netbeans.

GUEST: opening a project in windows which was created under linux

GUEST: opening a C file

GUEST: Opening a C file

GUEST: I have tried to open fortran source file

GUEST: Opening cpp file using file->open file

GUEST: I have tried to open source Makefile file

oleg_mitin: C/C++. The problem arises at creation of the new project or at addition of a new file to the existing project.

Thus in Early Access for PHP at attempt to create the new project in a window of dialogue anything is not present.

GUEST: opening a c file




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.makeproject.MakeProjectEncodingQueryImpl.getEncoding(MakeProjectEncodingQueryImpl.java:72)
   at org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:0)
   at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:0)
   at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:0)
   at org.openide.text.CloneableEditorSupport.open(CloneableEditorSupport.java:433)
   at org.openide.actions.OpenAction.performAction(OpenAction.java:0)
Comment 1 Exceptions Reporter 2010-04-26 16:28:02 UTC
Created attachment 98066 [details]
stacktrace
Comment 2 Alexander Simon 2010-04-26 19:29:54 UTC

*** This bug has been marked as a duplicate of bug 133234 ***