Prevent augment option NPE.

This commit is contained in:
MobiusDev
2017-12-06 18:36:01 +00:00
parent 86b76fd312
commit 709a2ed320
5 changed files with 40 additions and 10 deletions

View File

@@ -81,7 +81,10 @@ public final class Augmentation
{ {
for (Options op : _options) for (Options op : _options)
{ {
op.apply(player); if (op != null)
{
op.apply(player);
}
} }
} }
@@ -89,7 +92,10 @@ public final class Augmentation
{ {
for (Options op : _options) for (Options op : _options)
{ {
op.remove(player); if (op != null)
{
op.remove(player);
}
} }
} }
} }

View File

@@ -81,7 +81,10 @@ public final class Augmentation
{ {
for (Options op : _options) for (Options op : _options)
{ {
op.apply(player); if (op != null)
{
op.apply(player);
}
} }
} }
@@ -89,7 +92,10 @@ public final class Augmentation
{ {
for (Options op : _options) for (Options op : _options)
{ {
op.remove(player); if (op != null)
{
op.remove(player);
}
} }
} }
} }

View File

@@ -81,7 +81,10 @@ public final class Augmentation
{ {
for (Options op : _options) for (Options op : _options)
{ {
op.apply(player); if (op != null)
{
op.apply(player);
}
} }
} }
@@ -89,7 +92,10 @@ public final class Augmentation
{ {
for (Options op : _options) for (Options op : _options)
{ {
op.remove(player); if (op != null)
{
op.remove(player);
}
} }
} }
} }

View File

@@ -81,7 +81,10 @@ public final class Augmentation
{ {
for (Options op : _options) for (Options op : _options)
{ {
op.apply(player); if (op != null)
{
op.apply(player);
}
} }
} }
@@ -89,7 +92,10 @@ public final class Augmentation
{ {
for (Options op : _options) for (Options op : _options)
{ {
op.remove(player); if (op != null)
{
op.remove(player);
}
} }
} }
} }

View File

@@ -81,7 +81,10 @@ public final class Augmentation
{ {
for (Options op : _options) for (Options op : _options)
{ {
op.apply(player); if (op != null)
{
op.apply(player);
}
} }
} }
@@ -89,7 +92,10 @@ public final class Augmentation
{ {
for (Options op : _options) for (Options op : _options)
{ {
op.remove(player); if (op != null)
{
op.remove(player);
}
} }
} }
} }