| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -326,7 +326,12 @@ internal static bool ShouldBindProperty(PropertyInfo pi) | |||
| 326 | 326 | ||
| 327 | 327 | internal static bool ShouldBindEvent(EventInfo ei) | |
| 328 | 328 | { | |
| 329 | - return ShouldBindMethod(ei.GetAddMethod(true)); | ||
| 329 | + var mb = ei.GetAddMethod(true); | ||
| 330 | + if (mb == null) | ||
| 331 | + { | ||
| 332 | + return false; | ||
| 333 | + } | ||
| 334 | + return ShouldBindMethod(mb); | ||
| 330 | 335 | } | |
| 331 | 336 | ||
| 332 | 337 | private static ClassInfo GetClassInfo(Type type, ClassBase impl) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments