resource为null时不设置标题

pull/981/head
ag2s20150909 4 years ago
parent f7ab4b7140
commit e407617405
  1. 6
      epublib/src/main/java/me/ag2s/epublib/domain/TitledResourceReference.java

@ -1,12 +1,10 @@
package me.ag2s.epublib.domain;
import android.util.Log;
import java.io.Serializable;
import me.ag2s.epublib.Constants;
import me.ag2s.epublib.util.StringUtil;
import java.io.Serializable;
public class TitledResourceReference extends ResourceReference
implements Serializable {
@ -74,8 +72,6 @@ public class TitledResourceReference extends ResourceReference
//resource为null时不设置标题
if(this.resource!=null&&this.title!=null){
resource.setTitle(title);
}else {
Log.e(TitledResourceReference.class.getSimpleName(),"警告:resource 为null,忽略设置标题。");
}
return resource;

Loading…
Cancel
Save