Initialize depends set to an empty set to prevent a NPE when no depends given.
This commit is contained in:
parent
c8c1028bd9
commit
fecaf76acf
@ -1,13 +1,16 @@
|
|||||||
package net.md_5.bungee.api.plugin;
|
package net.md_5.bungee.api.plugin;
|
||||||
|
|
||||||
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* POJO representing the plugin.yml file.
|
* POJO representing the plugin.yml file.
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class PluginDescription
|
public class PluginDescription
|
||||||
{
|
{
|
||||||
@ -31,9 +34,5 @@ public class PluginDescription
|
|||||||
/**
|
/**
|
||||||
* Plugin hard dependencies.
|
* Plugin hard dependencies.
|
||||||
*/
|
*/
|
||||||
private Set<String> depends;
|
private Set<String> depends = new HashSet<>();
|
||||||
|
|
||||||
public PluginDescription()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user