ronysebastian / nhin-d

Automatically exported from code.google.com/p/nhin-d
0 stars 0 forks source link

Java RI gets a NullPointerException when there is no Title in the SubmissionSet #206

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Use XDR to send a message to the Direct RI, with no entry for Title

What is the expected output? What do you see instead?
Expect success, as Title is an optional attribute.  Instead, I get a 
NullPointerException in org/nhindirect/xd/common/DirectDocuments.java (from the 
xd-common package) at the line:

    name = rpt.getName().getLocalizedString().get(0).getValue();

What version of the product are you using? On what operating system?
version 2.1, on Windows Server 2008

Please provide any additional information below.

Original issue reported on code.google.com by EL...@QuadraMed.com on 7 Mar 2013 at 9:29

GoogleCodeExporter commented 9 years ago
this one scares me a little, I do not suggest we just put a null check in the 
code without some rigorous testing, just in case it blows up further down 
stream. But no doubt you are correct about your analysis. 

Original comment by lewistow...@gmail.com on 4 Apr 2013 at 12:50