Skip to content

Commit 0414e48

Browse files
committed
fix: version 为 null
1 parent e6afc0b commit 0414e48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/world/weibiansanjue/doctools/javadochub/controller/JavadocController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ private void extract(ModelAndView modelView,
8686
modelView.addObject("groupId", groupId)
8787
.addObject("artifactId", artifactId)
8888
.addObject("artifactIds", repository.artifact(groupId))
89-
.addObject("version", version)
9089
.addObject("page", page)
9190
.setViewName("doc");
9291

@@ -97,7 +96,8 @@ private void extract(ModelAndView modelView,
9796
return;
9897
}
9998
version = StringUtils.isEmpty(version) || "latest".equals(version) ? versioning.getRelease() : version;
100-
modelView.addObject("versions", versioning.getVersions());
99+
modelView.addObject("version", version)
100+
.addObject("versions", versioning.getVersions());
101101

102102
int status = repository.store(groupId, artifactId, version);
103103
modelView.addObject("status", status);

0 commit comments

Comments
 (0)