Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Assembly being null #3866

Merged
2 commits merged into from
Mar 22, 2021
Merged

Handle Assembly being null #3866

2 commits merged into from
Mar 22, 2021

Conversation

andrewleader
Copy link
Contributor

@andrewleader andrewleader commented Mar 18, 2021

Fixes #3861

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

If a desktop app's entry assembly is null, sending a notification throws an exception

What is the new behavior?

It'll correctly fall back to the process name and work.

PR Checklist

Customer verified that the fix fixes their problem!

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Pull Request has been submitted to the documentation repository instructions. Link:
  • Sample in sample app has been added / updated (for bug fixes / features)
  • New major technical changes in the toolkit have or will be added to the Wiki e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • Contains NO breaking changes

Other information

@ghost
Copy link

ghost commented Mar 18, 2021

Thanks andrewleader for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌

@ghost ghost requested review from michael-hawker, azchohfi, Kyaa-dost and Rosuavio March 18, 2021 21:54
@ghost ghost added the bug 🐛 An unexpected issue that highlights incorrect behavior label Mar 18, 2021
@michael-hawker michael-hawker added this to the 7.0.1 milestone Mar 18, 2021
@michael-hawker
Copy link
Member

Thanks @andrewleader for the quick fix! Did you take a quick audit of any other spots in the code that may also need null checks? (I mean while we're at it... 😋)

@andrewleader
Copy link
Contributor Author

I didn't do a thorough check through for other possible null issues, I don't think there's anything else obvious... welcome to feedback from others but so far we've seemed good (and multiple partners have verified that things work end-to-end). If you have suggestions let me know :)

@michael-hawker
Copy link
Member

@azchohfi looks like the SmokeTest issue is back? ☹

D:\a\1\s\SmokeTests\SmokeTest.csproj : warning NU1603: SmokeTest.Microsoft.Toolkit depends on Microsoft.Toolkit (>= 7.0.0-build.1042.g3f269cbeb0) but Microsoft.Toolkit 7.0.0-build.1042.g3f269cbeb0 was not found. An approximate best match of Microsoft.Toolkit 7.0.0-preview1 was resolved.

@ghost
Copy link

ghost commented Mar 22, 2021

Hello @michael-hawker!

Because this pull request has the auto merge :zap: label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@azchohfi
Copy link
Contributor

@azchohfi looks like the SmokeTest issue is back? ☹

D:\a\1\s\SmokeTests\SmokeTest.csproj : warning NU1603: SmokeTest.Microsoft.Toolkit depends on Microsoft.Toolkit (>= 7.0.0-build.1042.g3f269cbeb0) but Microsoft.Toolkit 7.0.0-build.1042.g3f269cbeb0 was not found. An approximate best match of Microsoft.Toolkit 7.0.0-preview1 was resolved.

Nop. I just found out the reason this failed.
The BuildBits job started at 2:54PM, and it cloned the repo.
The SmokeTests job started at 3:32PM, and it also cloned the repo.
RIGHT in the middle of these two jobs, there was a new commit in the repository:
2c04c96

I'm checking if there is a way to force the same commit to be used on all jobs, and not latest on each job.

@ghost ghost merged commit cf29259 into master Mar 22, 2021
@ghost ghost deleted the aleader/toast-assembly-null-fix branch March 22, 2021 18:39
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merge ⚡ bug 🐛 An unexpected issue that highlights incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Toast notification from c++ app
4 participants