Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » NulPointer Exception when gettingProfiles
NulPointer Exception when gettingProfiles [message #657850] Fri, 04 March 2011 05:48 Go to next message
Marou is currently offline Marou
Messages: 11
Registered: July 2010
Junior Member
Hi,

I want to get connection profiles but when i call

org.eclipse.datatools.connectivity.ProfileManager.getInstance().getProfiles();


a null pointer exception

Exception in thread "main" java.lang.NullPointerException
	at org.eclipse.datatools.connectivity.internal.InternalProfileManager.loadProfiles(InternalProfileManager.java:1048)
	at org.eclipse.datatools.connectivity.internal.InternalProfileManager.getProfiles(InternalProfileManager.java:148)
	at org.eclipse.datatools.connectivity.ProfileManager.getProfiles(ProfileManager.java:48)
	at first.wizards.test.main(test.java:16)


How to fix this?
Thx,
Re: NulPointer Exception when gettingProfiles [message #658053 is a reply to message #657850] Sat, 05 March 2011 11:34 Go to previous message
Marou is currently offline Marou
Messages: 11
Registered: July 2010
Junior Member
hi,

The problem is resolved.
The problem was that i tested it in main program.

[Updated on: Sat, 05 March 2011 14:27]

Report message to a moderator

Previous Topic:Db Schema not shown in 'data source explorer' view - Helios
Next Topic:Can't See DTP Perspective in Helios SR2
Goto Forum:
  


Current Time: Tue Jul 22 21:46:49 EDT 2014

Powered by FUDForum. Page generated in 0.18831 seconds