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 83773 - NPE on validating diagram with empty pick activity
Summary: NPE on validating diagram with empty pick activity
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-30 13:09 UTC by Maksim Khramov
Modified: 2006-09-13 09:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2006-08-30 13:09:13 UTC
Create BPEL process file.
Add 'Pick' activity and set 'Create Instance' property to Yes.
Remove OnMessage nested element form pick.
Invoke Validate XML command. The NPE is thrown:
java.lang.NullPointerException
	at java.util.AbstractCollection.addAll(AbstractCollection.java:236)
	at
org.netbeans.modules.bpel.model.validation.staticanalysis.BPELStaticAnalysisHelper.checkCorellations(BPELStaticAnalysisHelper.java:929)
	at
org.netbeans.modules.bpel.model.validation.staticanalysis.BPELStaticAnalysisHelper.checkInstantiableActivities(BPELStaticAnalysisHelper.java:675)
	at
org.netbeans.modules.bpel.model.validation.staticanalysis.BPELStaticAnalysisVisitor.visit(BPELStaticAnalysisVisitor.java:406)
	at org.netbeans.modules.bpel.model.impl.ProcessImpl.accept(ProcessImpl.java:268)
	at
org.netbeans.modules.bpel.model.impl.BpelEntityImpl.accept(BpelEntityImpl.java:205)
	at
org.netbeans.modules.bpel.model.validation.AbstractValidator.validate(AbstractValidator.java:68)
	at org.netbeans.modules.xml.xam.spi.Validation.validate(Validation.java:78)
	at
org.netbeans.modules.xml.validation.ValidationOutputWindowController.validate(ValidationOutputWindowController.java:64)
	at
org.netbeans.modules.xml.validation.ValidateAction$RunAction.run(ValidateAction.java:88)
	at
org.netbeans.modules.bpel.editors.multiview.DesignerMultiViewElement$BPELValidateAction$1.run(DesignerMultiViewElement.java:718)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 1 Denis Anisimov 2006-08-30 13:33:51 UTC
In described case method that should never return null actually does.
Handling this situation and return Collections.EMPTY_LIST in this case.
Comment 2 Maksim Khramov 2006-09-13 09:51:05 UTC
Verified in build 06.09.12