Bug 21187 - Typing in a cshtml file (triggering auto-complete) throws NRE
Summary: Typing in a cshtml file (triggering auto-complete) throws NRE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: ASP.Net ()
Version: 5.0
Hardware: PC Mac OS
: High major
Target Milestone: 5.2
Assignee: Mikayla Hutchinson [MSFT]
Depends on:
Reported: 2014-07-08 22:33 UTC by PJ
Modified: 2014-07-11 07:59 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description PJ 2014-07-08 22:33:12 UTC
## Steps to reproduce ##

1) Create a new Razor template
2) Open Views->_ViewStart.cshtml
3) Make a new line at the end of line 2, before the closing bracket on line 3.
4) Type 'L'

## Expected ##

Autocomplete appears and no NRE is thrown

## Actual ##

NRE in MonoDevelop.Ide.CodeCompletion.CompletionWindowManager.ShowWindow

## Frequency ##

Every time

##Regression status ##


This occurs on XS - http://screencast.com/t/jba4RjTP
This does not occur on XS - http://screencast.com/t/0PogrDrKa

## Fix ##

The fix is in https://github.com/mono/monodevelop/commit/5c33de31b0afadda25419acacea468cd51e34042

## Test Environment ##

Mac OS X 10.8.5
Comment 2 Prashant manu 2014-07-11 07:59:17 UTC
Checked , typing in a cshtml file (triggering auto-complete) doesn't throws NRE.
Screencast: http://screencast.com/t/NcPub8uhlsHq

Environment Info:
Xamarin Studio Version 5.2 (build 372)
Git revision: 6e127d0ac4db18a24e3e23c23f2b72ea532db727
Xamarin addins: e6f3bd05221689de3b45febfd1b2778f3804ec05