Bug 21187 - Typing in a cshtml file (triggering auto-complete) throws NRE
Summary: Typing in a cshtml file (triggering auto-complete) throws NRE
Status: VERIFIED FIXED
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]
URL:
Depends on:
Blocks:
 
Reported: 2014-07-08 22:33 UTC by PJ
Modified: 2014-07-11 07:59 UTC (History)
2 users (show)

Tags:
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:
Status:
VERIFIED FIXED

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
https://gist.github.com/anonymous/836c2575c766a4c0f386

## Frequency ##

Every time

##Regression status ##

Regression

This occurs on XS 5.2.0.364 - http://screencast.com/t/jba4RjTP
This does not occur on XS 5.1.0.479 - 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
XS 5.2.0.384, XS 5.1.0.479
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