ID:263330
 
Code:

atom/var
value = "0B"
hexbackup = "11"

proc/text2atom(string, list/options = typesof(/atom))
if(string)
for(. in options)

var/atom/atom = .

if(atom.value && atom.value == string)
return atom

return string

return 0


runtime error: Cannot read /atom/pie (/atom/pie).value
proc name: text2atom (/proc/text2atom)
  source file: text procs.dm,120
  usr: DivineO\'peanut (/mob)
  src: null
  call stack:
text2atom("03", /list (/list))
loadcode("03-05-0B-")
DivineO\'peanut (/mob): load()
DivineO\'peanut (/mob): both()



it is as the error says, you can not read a value from a (direct) path.

However, if you made a new object, it should work:
var/atom/atom = new .


- GhostAnime
In response to GhostAnime
That's what I thought at first, too, but it gave me this error:

<font color=red>
runtime error: bad loc
proc name: text2atom (/proc/text2atom)
  source file: text procs.dm,118
  usr: DivineO\'peanut (/mob)
  src: null
  call stack:
text2atom("04", /list (/list))
loadcode("04-05-0B-")
DivineO\'peanut (/mob): load()
DivineO\'peanut (/mob): both()
</font color>
In response to DivineO'peanut
By any chance, is the string you're using in this format: "/mob/blarg" ?