Commit 300bf561 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

change id to be not null

parent 217aba2a
Pipeline #51989 passed with stage
in 12 minutes and 40 seconds
......@@ -123,7 +123,7 @@ public class ModelAnnotator {
public void performAnnotations(final Model model, final IProgressUpdater progressUpdater, final UserAnnotationSchema inputAnnotationSchema) {
UserAnnotationSchema annotationSchema = inputAnnotationSchema;
if (annotationSchema.getId() > 0) {
if (annotationSchema != null && annotationSchema.getId() > 0) {
annotationSchema = userAnnotationSchemaDao.getById(annotationSchema.getId());
}
......
......@@ -58,7 +58,7 @@ public class UserAnnotationSchema implements Serializable {
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private int id;
/**
* {@link User} for which annotation schema is defined.
......@@ -187,8 +187,8 @@ public class UserAnnotationSchema implements Serializable {
}
/**
* Adds (or updates) {@link UserClassAnnotators class annotator} information to
* {@link #classAnnotators}.
* Adds (or updates) {@link UserClassAnnotators class annotator} information
* to {@link #classAnnotators}.
*
* @param ca
* object to add/update
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment