[MGNLSYNC-6] NPE in rule Created: 04/Jul/11 Updated: 29/Mar/22 Resolved: 07/Jul/11 |
|
| Status: | Closed |
| Project: | Magnolia Synchronization Module |
| Component/s: | None |
| Affects Version/s: | 0.1 |
| Fix Version/s: | 1.0 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Ondrej Chytil | Assignee: | Ondrej Chytil |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Date of First Response: | |
| Team: |
| Description |
|
In getSyndicator() method getRule() is called. In this case rule could end up with NPE because it's not necessarily clone. In those cases already implemented method getDefaultRule() should be called. |
| Comments |
| Comment by Jan Haderka [ 07/Jul/11 ] |
|
There's no need to keep rule class wide. It can be all handled within the method call and then you don't need release either. |