This repository was archived by the owner on Oct 18, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/main/java/com/groupdocs/ui Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 22
33import com .groupdocs .annotation .common .license .License ;
44import com .groupdocs .annotation .domain .AnnotationInfo ;
5+ import com .groupdocs .annotation .domain .AnnotationReplyInfo ;
56import com .groupdocs .annotation .domain .config .AnnotationConfig ;
67import com .groupdocs .annotation .domain .results .CreateAnnotationResult ;
78import com .groupdocs .annotation .handler .AnnotationImageHandler ;
@@ -51,10 +52,13 @@ synchronized public static Document findDocumentByName(String name) {
5152 .forEach (ai -> {
5253 ai .setDocumentGuid (documentId );
5354 CreateAnnotationResult car = imageHandler .createAnnotation (ai );
54- Arrays .stream (ai .getReplies ())
55- .forEach (ari -> {
56- imageHandler .createAnnotationReply (car .getId (), ari .getMessage ());
57- });
55+ AnnotationReplyInfo [] rs = ai .getReplies ();
56+ if (rs != null ) {
57+ Arrays .stream (ai .getReplies ())
58+ .forEach (ari -> {
59+ imageHandler .createAnnotationReply (car .getId (), ari .getMessage ());
60+ });
61+ }
5862 });
5963 doc = documentDataHandler .get (documentId );
6064 return doc ;
You can’t perform that action at this time.
0 commit comments