resource为null时不设置标题

pull/981/head
ag2s20150909 4 years ago
parent 9d6cd71128
commit fbe010a3bc
  1. 5
      epublib/src/main/java/me/ag2s/epublib/domain/TitledResourceReference.java

@ -69,8 +69,11 @@ public class TitledResourceReference extends ResourceReference
@Override
public Resource getResource() {
//修复getTitle为null的bug
//resource为null时不设置标题
if(this.resource!=null&&this.title!=null){
resource.setTitle(title);
}
return resource;
}

Loading…
Cancel
Save