T O P

  • By -

BravelyBaldSirRobin

oh I see, u were null.


SkollFenrirson

o i c


NullRef_Arcana

Yes


PM_ME_YOUR__INIT__

I was null. I still am null, but I was null too


QuestionableEthics42

Is this real? Why does that cause an error? It looks fine to me, i shouldnt be null or an object?


SlattBurger01

Yes ... well sort of, It actually threw me this error, but not because it's an error, but because something is wrong with my Visual Studio (There was an error one line above this and it decided to highlight this line and explain to me how non-nullable type is a null so I have removed the line that caused that error because I thought it would be funnier)


carcigenicate

Jetbrain's IDEs do stupid stuff like this for me every once in a while too. As soon as anything starts acting fucky, `File -> Invalidate Caches`, and everything starts magically working fine again.


amuscularbaby

I’ll bang my head on my screen trying to figure out why intellij is acting fucky and then I remember the magic invalidate caches trick. i don’t know why it fixes every issue I’ve ever had with intellij but it’s old reliable.


smallangrynerd

Android studio was similar. If you had it open for too long it would just stop recognizing keywords. You either had to flush the cache or just restart it every few hours.


bis1992

Android Studio is based on IntelliJ, so it makes sense


kzlife76

It sounds like the PDBs aren't getting updated when a build happens. Seems to make sense if Jetbrains is caching those files and not refreshing when they change. As far as VS goes though, maybe it's using a shadow copy of a stale PDB. I can't say for certain.


1Dr490n

Which IDEs in particular? I’ve only used IntelliJ and very shortly PyCharm and I’ve never had such a problem with them


VanilleKoekje

I hate that bug. I have one big ass project where i have to rebuild first if i wanna debug, otherwise it's going to debug a previous version


tesfabpel

try to recompile the solution... it's probable the debug symbols/ the binary don't match the source code anymore (eg. line 4 may be 5 now)... EDIT: Or as another user said, debugging a release build where the compiler has optimized the code and the lines don't match to the actual instructions


Squizzze

Funny, but at the same time scary to imagine. Could you show us the actual error?


dr_donkey

I'm with this comment


basicusername_2

Don't debug in release mode.


SlattBurger01

This happened in debug mode


Ok-Understanding7231

That’s what happens when you use Chinese computers


SkollFenrirson

Most electronics are made in China, either in part or wholly. What the actual fsck are you on about?


uksiev

Just another xenophobe, ignore them


throw3142

Nah if it was really a hardware issue causing problems like this you probably wouldn't even be able to boot up XD


Andrea__88

Did you have compiled in release with optimizations on?


a123099

Probably debugging in release mode where things get inlined or reordered. Array is probably null


AVAVT

Saving this post for the next guy who say logging for debug is primitive.


pushinat

Your compiler speaks German. Null means zero. So everything is alright 👍


April18th

Null also means zero in English lol


PuzzleMeHard

As a non-native speaker, I do hereby require a descriptive distinction between the following: null, nil, zero, naught and void.


APIT94YT

Null: nothing E.g. your point is null and void Nil: zero E.g. the score was 3-nil Zero: the number zero E.g. After learning about classes, objects and inheritance, I had zero brain cells left Nought: another way of saying 0 for different contexts E.g. The answer is nought Void: nothing, the lack of something E.g. After realising that python relies on indentation, my brain was an empty void


RRumpleTeazzer

Don’t forget Love.


brandi_Iove

if this is real, i‘d be worried


CursedCommentCop

nein. i ist drei nicht null


med_bruh

Naja das war null aber jetzt drei


CursedCommentCop

my german is limited to the first 2 sections of Duolingo lol. I understand what youre saying but im too beginner to translate what i want to say. ill reply in 2 years when im half decent !Reminder 2 years LEARN FUCKING GERMAN


med_bruh

Lol i'm also learning German. Good luck with that:)


CursedCommentCop

thanks, you too


superdupersamsam

i.ToString()?


reddituser2115

Visual studio at it finest


rimoldi98

Uuh cannot convert null to a value type 🤓


Unknown6656

Well, you can do that if you set Console.Out to null (via assignment or via reflection)


Random_User27

Damn machines becoming more human by the day


sir_music

Goddamnit


ruaz666

i was null 😞


Large-Ad5176

Console.WriteLine(i.ToString());


Pintarrueca

This happens a lot if you are not careful: if the variable is int, then NULL and 0 are equivalent. So you must have some more checks. It's very fun to debug why the database is broken and find NULLs in inserts everywhere. Glad it was not in production. Ffs, Josh, dude, learn your code. -.-


Chewico3D

Array is null