DTP -> ProfileManager.getInstance() throws NullPointerException [message #165036] |
Mon, 27 March 2006 15:46 |
Eclipse User |
|
|
|
Originally posted by: eclipse.lokahl.de
Hi all,
I'm trying to use the org.eclipse.datatools.connectivity.ProfileManager
in order to get access to stored connection profiles.
Following code results in a NullPointerException:
ProfileManager pm = ProfileManager.getInstance();
IConnectionProfile[] profiles = pm.getProfiles();
for (int i = 0; i < profiles.length; i++) {
IConnectionProfile profile = profiles[i];
System.out.println(profile.getName());
}
}
}
#############################
java.lang.NullPointerException
at
org.eclipse.datatools.connectivity.internal.InternalProfileM anager.loadProfiles(InternalProfileManager.java:465)
at
org.eclipse.datatools.connectivity.internal.InternalProfileM anager.getProfiles(InternalProfileManager.java:66)
at
org.eclipse.datatools.connectivity.ProfileManager.getProfile s(ProfileManager.java:42)
#############################
Any suggestions on what I do wrong?
Regards,
Lorenz
|
|
|
|
Powered by
FUDForum. Page generated in 0.02711 seconds