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 84147 - Validator throws NPE if add empty tag '<toPart/>' to Invoke in bpel source
Summary: Validator throws NPE if add empty tag '<toPart/>' to Invoke in bpel source
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-04 16:22 UTC by Andrey Yamkovoy
Modified: 2006-09-11 16:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception stack trace (1.43 KB, text/plain)
2006-09-04 16:23 UTC, Andrey Yamkovoy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Yamkovoy 2006-09-04 16:22:25 UTC
Steps to reproduce:
- Add Invoke activity to process.
- Configure it to use some operation with input variable.
- Go to bpel source and add empty tag '<toPart/>' to Invoke.
- Wait a few seconds while validator starts.
- Following NPE occurs (see attach for full stack trace):

java.lang.NullPointerException
	at 
org.netbeans.modules.bpel.model.validation.staticanalysis.BPELStaticAnalysisHelp
er.checkAnyMissingToPartElementInInvoke(BPELStaticAnalysisHelper.java:398)
...
Comment 1 Andrey Yamkovoy 2006-09-04 16:23:19 UTC
Created attachment 33575 [details]
Exception stack trace
Comment 2 Denis Anisimov 2006-09-05 09:03:15 UTC
There was a set of bugs in static validators helper.
One need to check for non null attribute value before accessing to referenced 
element ( if attribute is reference ).
Comment 3 Andrey Yamkovoy 2006-09-11 16:13:56 UTC
fixed