Bug #62349 NullReferenceException during Include
Submitted: 5 Sep 2011 10:00 Modified: 6 Nov 2011 20:30
Reporter: Alexander Sidorov Email Updates:
Status: No Feedback Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version:6.4.3 OS:Windows
Assigned to: Assigned Account CPU Architecture:Any

[5 Sep 2011 10:00] Alexander Sidorov
Description:
When I try to execute the following query:

ctx.BattleTeamStatistics.Include(bts => bts.Team.TeamUsers).OrderByDescending(bts => bts.Balance).Skip(0).Take(10).ToList()

NullReferenceException is thrown. If I remove Include or Skip+Take, exception is not thrown.

How to repeat:
Execute the query above
[5 Sep 2011 10:01] Alexander Sidorov
Database structure exported from phpmyadmin

Attachment: betteamsbattle (9).sql (application/octet-stream, text), 7.09 KiB.

[5 Sep 2011 10:02] Alexander Sidorov
Exception StackTrace

Attachment: ExceptionStrackTrace.txt (text/plain), 7.96 KiB.

[6 Oct 2011 20:30] Fernando Gonzalez.Sanchez
Thanks for your report Alexander,

This seems to be fixed in 6.4.4 (as part of http://bugs.mysql.com/bug.php?id=61729), can you confirm if you can reproduce it with 6.4.4?

Thanks.
[7 Nov 2011 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".