Skip to content

Commit

Permalink
fix getUserScores nullpointer
Browse files Browse the repository at this point in the history
  • Loading branch information
kane50613 committed Jun 13, 2021
1 parent cc05855 commit fadc92a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
13 changes: 1 addition & 12 deletions dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>tw.kane</groupId>
<artifactId>osu4j</artifactId>
<version>v2.3</version>
<version>v2.3.1</version>
<build>
<plugins>
<plugin>
Expand All @@ -18,17 +18,6 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>tw.kane.osu4j.Osu</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
Expand Down
14 changes: 1 addition & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>tw.kane</groupId>
<artifactId>osu4j</artifactId>
<version>v2.3.1</version>
<version>v2.3.2</version>

<distributionManagement>
<repository>
Expand All @@ -31,18 +31,6 @@
</execution>
</executions>
</plugin>
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-jar-plugin</artifactId>-->
<!-- <configuration>-->
<!-- <archive>-->
<!-- <manifest>-->
<!-- <addClasspath>true</addClasspath>-->
<!-- <mainClass>tw.kane.osu4j.Osu</mainClass>-->
<!-- </manifest>-->
<!-- </archive>-->
<!-- </configuration>-->
<!-- </plugin>-->
</plugins>
</build>

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tw/kane/osu4j/OsuClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public Score[] getUserScores(String id, ScoreType type, boolean includeFails, Mo
}
return scores.toArray(new Score[0]);
}
return null;
throw new NotFoundException();
}

public Beatmap getBeatmap(String id) throws IOException, InvalidTokenException, NotFoundException {
Expand Down

0 comments on commit fadc92a

Please sign in to comment.