Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix NPE when running /f mod without args #17

Merged
merged 1 commit into from
Jun 11, 2017
Merged

fix NPE when running /f mod without args #17

merged 1 commit into from
Jun 11, 2017

Conversation

ctooley21
Copy link
Contributor

Changes:
Fixed NPE
Had to put a UTF-8 line in gradle as I was getting odd errors.
Vault API updates.

Copy link
Member

@markhughes markhughes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything is perfect, I will merge this now.

I added some notes about styling changes from the previous maintainers, which we can change in another commit 👍

Thanks for working on this so quickly 🕺

@@ -194,18 +194,18 @@ public static boolean transferMoney(EconomyParticipator invoker, EconomyParticip
}

// Transfer money
EconomyResponse erw = econ.withdrawPlayer(fromAcc, amount);
EconomyResponse erw = econ.withdrawPlayer(fromAcc.getName(), amount);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know its not your fault, but the previous maintainer used a lot of acronyms which we're trying to move away from - as these can make it difficult to read.

For example, erw should be ecomomyResponseWithdraw


if (erw.transactionSuccess()) {
EconomyResponse erd = econ.depositPlayer(toAcc, amount);
EconomyResponse erd = econ.depositPlayer(toAcc.getName(), amount);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, move to ecomonyResponseDeposit

@@ -15,7 +15,7 @@
public Map<String, String> tags;

public TextUtil() {
this.tags = new HashMap<String, String>();
this.tags = new HashMap<>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!! Diamonds all around 💎💎💎💎

@markhughes markhughes merged commit 7ba9e42 into redstone:master Jun 11, 2017
@markhughes markhughes mentioned this pull request Jul 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants