It is currently 08 Sep 2025, 20:15
   
Text Size

rev 19558 (Sloth)

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

rev 19558 (Sloth)

Postby Max mtg » 12 Feb 2013, 19:43

Sloth, I intend to minimize global references and use of singletons.getSomething to the least possible.

By commiting 19558 you've just reintroduced that dependence from an evil global variable.
According to comment to this revision, you were fixing an NPE. Would you describe the method to reproduce that problem, so that I have a chance to apply a diffrent fix?
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: rev 19558 (Sloth)

Postby Sloth » 13 Feb 2013, 13:54

Max mtg wrote:Would you describe the method to reproduce that problem, so that I have a chance to apply a diffrent fix?
Try to cast a Morph or hardcoded card.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: rev 19558 (Sloth)

Postby Max mtg » 14 Feb 2013, 06:52

Thanks, I've set up the correct field initialization order.
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 36 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 36 users online :: 0 registered, 0 hidden and 36 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 36 guests

Login Form