prakash1986 / rapla

Automatically exported from code.google.com/p/rapla
0 stars 0 forks source link

Null pointer exception with empty name format #480

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Edit a resource type
2. Clear the info in the field: "Displayed name format"
3. Save the resource type
4. restart Rapla

After succesfully login, the Rapla client now shows:
java.lang.NullPointerException 
There is no way to enter the Rapla system anymore.

What is the expected output? What do you see instead?
Test "Displayed name format" field for NULL value on save.
Check if the NULL pointer exeption can be catched in the software so Rapla can 
be used if someone makes that mistake.

What version of the product are you using? On what operating system?
1.8.1 on Suse Linux

Please provide any additional information below.
We were able to fix this issue by manually editing the database:
Table: DYNAMIC_TYPE
Edit XML data from:
<rapla:annotation key="nameformat"></rapla:annotation>  (empty nameformat)
to
<rapla:annotation key="nameformat">some text or element name between 
brackets</rapla:annotation>

The export and import of data.xml was not a proper workaround. So perhaps the 
import should also check for empty values of the display format.

Original issue reported on code.google.com by gac...@gmail.com on 19 Mar 2015 at 10:48

GoogleCodeExporter commented 8 years ago

Original comment by christop...@gmail.com on 23 Mar 2015 at 2:36

GoogleCodeExporter commented 8 years ago

Original comment by christop...@gmail.com on 26 Jun 2015 at 12:18

GoogleCodeExporter commented 8 years ago

Original comment by christop...@gmail.com on 2 Jul 2015 at 6:39