Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mylyn-dev] Submitting a New Task on Bugzilla

Hello

I'm writing a bit code for submitting bugs to Bugzilla, and I'm currently stuck with the following
problem:

line: taskDataHandler.initializeTaskData(repository, taskData, taskMapping, new
NullProgressMonitor());

throws:

Exception in thread "main" java.lang.NullPointerException
	at
org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin.getRepositoryConfiguration(BugzillaCorePlugin.java:135)
	at
org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.initializeTaskData(BugzillaTaskDataHandler.java:395)
	at BugzillaConnector.submitBug(BugzillaConnector.java:99)
	at BugzillaConnector.main(BugzillaConnector.java:183)

Code snippet:

BugzillaRepositoryConnector connector = new BugzillaRepositoryConnector();
AbstractTaskDataHandler taskDataHandler = connector.getTaskDataHandler();
TaskAttributeMapper attributeMapper = taskDataHandler.getAttributeMapper(repository);
TaskData taskData = new TaskData(attributeMapper, repository.getConnectorKind(),
repository.getRepositoryUrl(), "");
ITaskMapping taskMapping = new DefaultTaskMapping(); 

taskDataHandler.initializeTaskData(repository, taskData, taskMapping, new NullProgressMonitor());

----------------------------------

Can someone please help me with this? Why does is not retrieve repository configuration properties
succesfully, or something?

Thnx,

Robert


Back to the top