Skip to content

Commit

Permalink
NPE when installing jar file with FTP
Browse files Browse the repository at this point in the history
(by bertek41 from VolmitSoftware#4)
  • Loading branch information
bertek41 authored and mindsolve committed Nov 28, 2020
1 parent 0805def commit e8b0aa9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.volmit</groupId>
<artifactId>BileTools</artifactId>
<version>2</version>
<version>2.1</version>
<name>BileTools</name>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down Expand Up @@ -36,7 +36,7 @@
<version>2.3.1</version>
<configuration>
<finalName>${project.name}</finalName>
<outputDirectory>C:\Users\cyberpwn\Documents\development\servers\dynamic\plugins</outputDirectory>
<!--outputDirectory>C:\Users\cyberpwn\Documents\development\servers\dynamic\plugins</outputDirectory-->
</configuration>
</plugin>
</plugins>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/volmit/bile/BileTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ public void run()

for(Plugin j : Bukkit.getServer().getPluginManager().getPlugins())
{
if(BileUtils.getPluginFile(j).getName().equals(i.getName()))
File file = BileUtils.getPluginFile(j);
if(file != null && file.getName().equals(i.getName()))
{
getLogger().log(Level.INFO, "File change detected: " + i.getName());
getLogger().log(Level.INFO, "Identified Plugin: " + j.getName() + " <-> " + i.getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ public class ClusterStringList extends ClusterBase<GList<String>>
@SuppressWarnings("unchecked")
public ClusterStringList(GList<String> t)
{
super((Class<? extends GList<String>>) GList.class, t);
super((Class<? extends GList<String>>) (Class<? extends GList>) GList.class, t);
}
}
1 change: 1 addition & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: ${project.name}
version: ${project.version}
main: com.volmit.bile.BileTools
api-version: 1.13
commands:
biletools:
aliases: [bile, bi, b, volmit, vomit, vom]
Expand Down

0 comments on commit e8b0aa9

Please sign in to comment.