Merge pull request #9635 from dekvall/npe-branch
Fix NPE in groundmarkerplugin and annotate some methods as nullable
This commit is contained in:
@@ -50,6 +50,7 @@ public interface Actor extends Renderable
|
||||
*
|
||||
* @return the name
|
||||
*/
|
||||
@Nullable
|
||||
String getName();
|
||||
|
||||
/**
|
||||
|
||||
@@ -345,6 +345,7 @@ public interface Client extends GameEngine
|
||||
*
|
||||
* @return the logged in player
|
||||
*/
|
||||
@Nullable
|
||||
Player getLocalPlayer();
|
||||
|
||||
/**
|
||||
@@ -425,6 +426,7 @@ public interface Client extends GameEngine
|
||||
*
|
||||
* @return the selected tile
|
||||
*/
|
||||
@Nullable
|
||||
Tile getSelectedSceneTile();
|
||||
|
||||
/**
|
||||
@@ -439,6 +441,7 @@ public interface Client extends GameEngine
|
||||
*
|
||||
* @return the dragged widget, null if not dragging any widget
|
||||
*/
|
||||
@Nullable
|
||||
Widget getDraggedWidget();
|
||||
|
||||
/**
|
||||
@@ -449,6 +452,7 @@ public interface Client extends GameEngine
|
||||
*
|
||||
* @return the dragged on widget, null if not dragging any widget
|
||||
*/
|
||||
@Nullable
|
||||
Widget getDraggedOnWidget();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user